7070155: A small refactoring patch for the abstract RenderingEngine.
authorneugens
Tue, 26 Jul 2011 21:34:25 +0200
changeset 10087 e1bbe4597795
parent 10086 a6dbbf4eb30f
child 10101 f216403b828d
7070155: A small refactoring patch for the abstract RenderingEngine. Summary: Simplify code by using ReflectiveOperationException instead of 3 ignored catch blocks Reviewed-by: prr
jdk/src/share/classes/sun/java2d/pipe/RenderingEngine.java
--- 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
                         }
                     }