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

Conflicts:
	src/main/java/net/openhft/chronicle/map/EngineReplicationLangBytes.java
	src/main/java/net/openhft/chronicle/map/ReplicatedChronicleMap.java
	src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java
	src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java
	src/test/java/net/openhft/chronicle/map/IntIntMultiMapTest.java
This commit is contained in:
Peter Lawrey
2015-07-25 23:25:54 +03:00
committed by leventov
parent e7a8a11505
commit 87449b7d99
21 changed files with 55 additions and 53 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";
@@ -530,7 +530,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");
}
@@ -1886,7 +1886,7 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable, Clon
}
}
private void resizeToMessageOutBuffer(long start, @NotNull Exception e) throws Exception {
private <T extends Exception> void resizeToMessageOutBuffer(long start, @NotNull T e) throws T {
assert outBytesLock.isHeldByCurrentThread();
assert !inBytesLock.isHeldByCurrentThread();
String message = e.getMessage();