We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2fe48c commit 290298aCopy full SHA for 290298a
msgpack-core/src/main/java/org/msgpack/core/buffer/DirectBufferAccess.java
@@ -69,12 +69,7 @@ enum DirectBufferConstructorType {
69
if(byteBufferConstructor == null)
70
throw new RuntimeException("Constructor of DirectByteBuffer is not found");
71
byteBufferConstructor.setAccessible(true);
72
- }
73
- catch(Exception e) {
74
-
75
76
77
- try {
78
mGetAddress = directByteBufferClass.getDeclaredMethod("address");
79
mGetAddress.setAccessible(true);
80
@@ -84,7 +79,7 @@ enum DirectBufferConstructorType {
84
mClean = mCleaner.getReturnType().getDeclaredMethod("clean");
85
mClean.setAccessible(true);
86
81
}
87
- catch(NoSuchMethodException e) {
82
+ catch(Exception e) {
88
83
throw new RuntimeException(e);
89
90
0 commit comments