From ffbd2f279c475a280729a99a6c5c06980b15f520 Mon Sep 17 00:00:00 2001 From: Aiden Scandella Date: Thu, 9 Jul 2015 17:25:41 -0600 Subject: [PATCH] Make DEFAULT_COMMENT_SIZE a final static --- .../com/uber/jenkins/phabricator/PhabricatorNotifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/uber/jenkins/phabricator/PhabricatorNotifier.java b/src/main/java/com/uber/jenkins/phabricator/PhabricatorNotifier.java index dbc5d051..28fa28a7 100644 --- a/src/main/java/com/uber/jenkins/phabricator/PhabricatorNotifier.java +++ b/src/main/java/com/uber/jenkins/phabricator/PhabricatorNotifier.java @@ -52,7 +52,7 @@ import static java.lang.Integer.parseInt; public class PhabricatorNotifier extends Notifier { - + private static final int DEFAULT_COMMENT_SIZE = 1000; // Post a comment on success. Useful for lengthy builds. private final boolean commentOnSuccess; private final boolean uberallsEnabled; @@ -284,7 +284,7 @@ private String getRemoteComment(AbstractBuild build, PrintStream logger, S FilePath source = src[0]; - int maxLength = 1000; + int maxLength = DEFAULT_COMMENT_SIZE; if (!CommonUtils.isBlank(maxSize)) { maxLength = parseInt(maxSize, 10); }