You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2015/06/28 22:16:19 UTC

svn commit: r1688059 - /jmeter/trunk/src/core/org/apache/jmeter/gui/util/PowerTableModel.java

Author: pmouawad
Date: Sun Jun 28 20:16:19 2015
New Revision: 1688059

URL: http://svn.apache.org/r1688059
Log:
Java7 multiple exception catching

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/util/PowerTableModel.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/PowerTableModel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/PowerTableModel.java?rev=1688059&r1=1688058&r2=1688059&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/PowerTableModel.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/PowerTableModel.java Sun Jun 28 20:16:19 2015
@@ -141,74 +141,47 @@ public class PowerTableModel extends Def
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { String.class });
                 return constr.newInstance(new Object[] { "" });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Integer.TYPE });
                 return constr.newInstance(new Object[] { Integer.valueOf(0) });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Long.TYPE });
                 return constr.newInstance(new Object[] { Long.valueOf(0L) });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Boolean.TYPE });
                 return constr.newInstance(new Object[] { Boolean.FALSE });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Float.TYPE });
                 return constr.newInstance(new Object[] { Float.valueOf(0F) });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Double.TYPE });
                 return constr.newInstance(new Object[] { Double.valueOf(0D) });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Character.TYPE });
                 return constr.newInstance(new Object[] { Character.valueOf(' ') });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Byte.TYPE });
                 return constr.newInstance(new Object[] { Byte.valueOf(Byte.MIN_VALUE) });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
             try {
                 Constructor<?> constr = colClass.getConstructor(new Class[] { Short.TYPE });
                 return constr.newInstance(new Object[] { Short.valueOf(Short.MIN_VALUE) });
-            } catch (NoSuchMethodException err) {
-            } catch (InstantiationException err) {
-            } catch (IllegalAccessException err) {
-            } catch (InvocationTargetException err) {
+            } catch (NoSuchMethodException|InstantiationException|IllegalAccessException|InvocationTargetException ignored) {
             }
         }
         return "";