Replace "throws Exception" with the specific Exception(s) thrown.

This commit is contained in:
Peter Lawrey
2015-06-28 18:52:05 +01:00
parent 9f9aaa9b9e
commit 9c8fea8367
25 changed files with 67 additions and 65 deletions
@@ -180,7 +180,7 @@ public final class DataValueBytesMarshallers {
" }\n" +
"\n" +
" @Override\n" +
" " + simpleName + " getInstance() throws Exception {\n" +
" " + simpleName + " getInstance() {\n" +
" return factory.create();\n" +
" }\n" +
"}\n";
@@ -531,7 +531,7 @@ public final class DataValueBytesMarshallers {
private static void generateGetInstance(StringBuilder sb, Class cl) {
sb.append(" ").append(cl.getCanonicalName())
.append(" getInstance() throws Exception {\n");
.append(" getInstance() {\n");
sb.append(" ").append("return new ").append(cl.getName()).append("$$Native();\n");
sb.append(" ").append("}\n\n");
}