mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-05 07:58:40 +00:00
7070155: A small refactoring patch for the abstract RenderingEngine
Simplify code by using ReflectiveOperationException instead of 3 ignored catch blocks Reviewed-by: prr
This commit is contained in:
parent
6a627fd128
commit
e95d21a2bf
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user