equal
deleted
inserted
replaced
125 System.getProperty("sun.java2d.renderer", ductusREClass); |
125 System.getProperty("sun.java2d.renderer", ductusREClass); |
126 if (reClass.equals(ductusREClass)) { |
126 if (reClass.equals(ductusREClass)) { |
127 try { |
127 try { |
128 Class cls = Class.forName(ductusREClass); |
128 Class cls = Class.forName(ductusREClass); |
129 return cls.newInstance(); |
129 return cls.newInstance(); |
130 } catch (ClassNotFoundException x) { |
130 } catch (ReflectiveOperationException ignored) { |
131 // not found |
131 // not found |
132 } catch (IllegalAccessException x) { |
|
133 // should not reach here |
|
134 } catch (InstantiationException x) { |
|
135 // should not reach here |
|
136 } |
132 } |
137 } |
133 } |
138 |
134 |
139 ServiceLoader<RenderingEngine> reLoader = |
135 ServiceLoader<RenderingEngine> reLoader = |
140 ServiceLoader.loadInstalled(RenderingEngine.class); |
136 ServiceLoader.loadInstalled(RenderingEngine.class); |