Merge branch 'master' into 7.0.x

This commit is contained in:
Clément Fournier
2018-11-27 18:09:31 +01:00
216 changed files with 6218 additions and 537 deletions

View File

@ -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());