changeset 4389:40d0dea5d0fc

7070155: A small refactoring patch for the abstract RenderingEngine. Summary: Simplify code by using ReflectiveOperationException instead of 3 ignored catch blocks Reviewed-by: prr
author neugens
date Tue, 26 Jul 2011 21:34:25 +0200
parents ae05aa9ede7b
children 190b11164876
files src/share/classes/sun/java2d/pipe/RenderingEngine.java
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/java2d/pipe/RenderingEngine.java	Wed Jul 20 16:18:08 2011 +0400
+++ b/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
                         }
                     }