commit | 556e427fd737744ce8a6a37b89fd427ae59bc8ea | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Mon Oct 01 09:27:25 2018 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Mon Oct 01 09:28:38 2018 -0700 |
tree | fdaddc2489b000a9113b46d0b784d2ece60a8801 | |
parent | aeacc1652ac0bd34346e07af3d0801bec4d71b53 [diff] |
Format files with google-java-format Change-Id: Iaad8cc02cfc61e7403e98a6411c84f130c500aad
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 35c87d5..97c87ea 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java +++ b/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java
@@ -24,7 +24,6 @@ import com.google.inject.Singleton; import java.util.ArrayList; import java.util.List; -import org.eclipse.jgit.lib.AbbreviatedObjectId; import org.eclipse.jgit.lib.Config; import org.eclipse.jgit.revwalk.RevCommit; @@ -63,9 +62,7 @@ return value >= 0 ? value : defaultValue; } - private void onLineTooLong( - List<CommitValidationMessage> messagesList, - final String message) + private void onLineTooLong(List<CommitValidationMessage> messagesList, final String message) throws CommitValidationException { if (rejectTooLong) { messagesList.add(new CommitValidationMessage(message, true));