commit | 7923b67392164dcc65ada85f723fa5111b265484 | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Oct 31 11:31:29 2014 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Oct 31 11:31:29 2014 +0900 |
tree | 51f98550f254f6cd270e144f72bc8e0c60caf336 | |
parent | 273972a3b03b0e95f9ea69ad424042123306a7ee [diff] |
Fix warnings about redundant type arguments Change-Id: I6e891798549e2eaf4125ddbcd19057f0c1fb45a4
diff --git a/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java b/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java index 2e06a7d..d5d0f4c 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java +++ b/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java
@@ -83,7 +83,7 @@ throws CommitValidationException { final RevCommit commit = receiveEvent.commit; final AbbreviatedObjectId id = commit.abbreviate(7); - List<CommitValidationMessage> messages = new ArrayList<CommitValidationMessage>(); + List<CommitValidationMessage> messages = new ArrayList<>(); if (this.maxSubjectLength < commit.getShortMessage().length()) { onLineTooLong(id, messages,