提交 5afefaaf 编写于 作者: N neugens

7070155: A small refactoring patch for the abstract RenderingEngine.

Summary: Simplify code by using ReflectiveOperationException instead of 3 ignored catch blocks
Reviewed-by: prr
上级 1b6e594f
......@@ -127,12 +127,8 @@ public abstract class RenderingEngine {
try {
Class cls = Class.forName(ductusREClass);
return cls.newInstance();
} catch (ClassNotFoundException x) {
} catch (ReflectiveOperationException ignored) {
// not found
} catch (IllegalAccessException x) {
// should not reach here
} catch (InstantiationException x) {
// should not reach here
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册