commit | 273972a3b03b0e95f9ea69ad424042123306a7ee | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Tue Oct 28 14:46:31 2014 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Tue Oct 28 14:46:31 2014 -0700 |
tree | 20c54c322b620e03049b2a81c7feb72e88ed8e08 | |
parent | c882e583226d712053ad02fdee4afcfd1e4df915 [diff] |
Clean up unused throws Change-Id: I4a37a86a27403db3d7730b0a8233f4a8519f6e52
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 ffefce1..2e06a7d 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java +++ b/src/main/java/com/googlesource/gerrit/plugins/validators/CommitMessageLengthValidation.java
@@ -22,12 +22,10 @@ import com.google.inject.Inject; import com.google.inject.Singleton; -import org.eclipse.jgit.errors.ConfigInvalidException; import org.eclipse.jgit.lib.AbbreviatedObjectId; import org.eclipse.jgit.lib.Config; import org.eclipse.jgit.revwalk.RevCommit; -import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -52,7 +50,7 @@ @Inject public CommitMessageLengthValidation(@GerritServerConfig Config gerritConfig) - throws ConfigInvalidException, IOException { + { this.config = gerritConfig; this.maxSubjectLength = config.getInt( COMMIT_MESSAGE_SECTION, null,