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:
Mario Torre 2011-07-26 21:34:25 +02:00
parent 6a627fd128
commit e95d21a2bf

View File

@ -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
}
}