7070155: A small refactoring patch for the abstract RenderingEngine.
Summary: Simplify code by using ReflectiveOperationException instead of 3 ignored catch blocks
Reviewed-by: prr
--- a/jdk/src/share/classes/sun/java2d/pipe/RenderingEngine.java Wed Jul 20 16:18:08 2011 +0400
+++ b/jdk/src/share/classes/sun/java2d/pipe/RenderingEngine.java Tue Jul 26 21:34:25 2011 +0200
@@ -127,12 +127,8 @@
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
}
}