mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
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:
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user