Skip to content

Commit

Permalink
Make DEFAULT_COMMENT_SIZE a final static
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandella committed Jul 9, 2015
1 parent 6043c29 commit ffbd2f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit ffbd2f2

Please sign in to comment.