Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-10-31 16:54:51 +0000
committeratikhomirov2006-10-31 16:54:51 +0000
commit4c4efaa39d22954443fcb035cd562a43ff5b7afd (patch)
treec329b4ddf1a9b75902fac7d3ce1cdc6c603962f9
parent57d908b9eaf36d81224efc2c507dac2881ba4808 (diff)
downloadorg.eclipse.gmf-tooling-4c4efaa39d22954443fcb035cd562a43ff5b7afd.tar.gz
org.eclipse.gmf-tooling-4c4efaa39d22954443fcb035cd562a43ff5b7afd.tar.xz
org.eclipse.gmf-tooling-4c4efaa39d22954443fcb035cd562a43ff5b7afd.zip
replaced lengthy typed catches with single - we do not handle them anyway
-rw-r--r--tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/GenericFigureCheck.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/GenericFigureCheck.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/GenericFigureCheck.java
index 1d0e47357..209ea9179 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/GenericFigureCheck.java
+++ b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/figures/GenericFigureCheck.java
@@ -13,7 +13,6 @@
package org.eclipse.gmf.tests.setup.figures;
import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.List;
@@ -346,15 +345,9 @@ public class GenericFigureCheck extends FigureCheck {
//we are not sure that instance provides getter,
//just skip the check if getter is not found
return;
- } catch (SecurityException e) {
+ } catch (Exception e) {
//strange
- throw new RuntimeException("getter: " + getterName + ", instance: " + instance, e);
- } catch (IllegalArgumentException e) {
- throw new RuntimeException("getter: " + getterName + ", instance: " + instance, e);
- } catch (IllegalAccessException e) {
- throw new RuntimeException("getter: " + getterName + ", instance: " + instance, e);
- } catch (InvocationTargetException e) {
- throw new RuntimeException("getter: " + getterName + ", instance: " + instance, e);
+ throw new RuntimeException(e.getClass().getSimpleName() + "; getter: " + getterName + ", instance: " + instance, e);
}
//it is pure check, but it should be enough for integers/strings

Back to the top