commit | 28235a6e75d402b38ae29e1112a347e762ac3cbd | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Feb 21 17:21:41 2014 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Feb 21 17:21:55 2014 +0900 |
tree | c260ac06719b6110c7a0f9a70610fbf7a17b4c9c | |
parent | 7df7db4f643ae93f06841bd1b33019622d8eb51c [diff] |
Remove unnecessary exceptions from hello command class declaration Change-Id: Idf3ee766d46ce6d51a7a436a18d40460f38554ef
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java b/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java index 8c88eae..516ff17 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java +++ b/src/main/java/com/googlesource/gerrit/plugins/cookbook/PrintHelloWorldCommand.java
@@ -30,7 +30,7 @@ private boolean french = false; @Override - public void run() throws UnloggedFailure, Failure, Exception { + public void run() { final String greeting = (french ? "Bonjour " : "Hello "); // Note the use of '\n' instead of println to keep platform-agnostic line // terminator.