Merge branch 'master' into 7.0.x
This commit is contained in:
@ -145,9 +145,7 @@ public final class EcmascriptTreeBuilder implements NodeVisitor {
|
||||
Class<? extends EcmascriptNode<T>> nodeAdapterType) {
|
||||
try {
|
||||
NODE_TYPE_TO_NODE_ADAPTER_TYPE.put(nodeType, nodeAdapterType.getConstructor(nodeType));
|
||||
} catch (SecurityException e) {
|
||||
throw new RuntimeException(e);
|
||||
} catch (NoSuchMethodException e) {
|
||||
} catch (SecurityException | NoSuchMethodException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
@ -164,9 +162,7 @@ public final class EcmascriptTreeBuilder implements NodeVisitor {
|
||||
"There is no Node adapter class registered for the Node class: " + node.getClass());
|
||||
}
|
||||
return constructor.newInstance(node);
|
||||
} catch (InstantiationException e) {
|
||||
throw new RuntimeException(e);
|
||||
} catch (IllegalAccessException e) {
|
||||
} catch (InstantiationException | IllegalAccessException e) {
|
||||
throw new RuntimeException(e);
|
||||
} catch (InvocationTargetException e) {
|
||||
throw new RuntimeException(e.getTargetException());
|
||||
|
Reference in New Issue
Block a user