You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/10/12 01:17:02 UTC
svn commit: r463053 -
/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/util/PowerTableModel.java
Author: sebb
Date: Wed Oct 11 16:17:01 2006
New Revision: 463053
URL: http://svn.apache.org/viewvc?view=rev&rev=463053
Log:
Replace generic Exception with specific ones
Modified:
jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/util/PowerTableModel.java
Modified: jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/util/PowerTableModel.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/util/PowerTableModel.java?view=diff&rev=463053&r1=463052&r2=463053
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/util/PowerTableModel.java (original)
+++ jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/util/PowerTableModel.java Wed Oct 11 16:17:01 2006
@@ -19,6 +19,7 @@
package org.apache.jmeter.gui.util;
import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
import java.util.List;
import javax.swing.table.DefaultTableModel;
@@ -131,47 +132,74 @@
try {
Constructor constr = colClass.getConstructor(new Class[] { String.class });
return constr.newInstance(new Object[] { "" });
- } catch (Exception err) {
- }
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
+ }
try {
Constructor constr = colClass.getConstructor(new Class[] { Integer.TYPE });
return constr.newInstance(new Object[] { new Integer(0) });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
try {
Constructor constr = colClass.getConstructor(new Class[] { Long.TYPE });
return constr.newInstance(new Object[] { new Long(0L) });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
try {
Constructor constr = colClass.getConstructor(new Class[] { Boolean.TYPE });
return constr.newInstance(new Object[] { Boolean.FALSE });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
try {
Constructor constr = colClass.getConstructor(new Class[] { Float.TYPE });
return constr.newInstance(new Object[] { new Float(0F) });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
try {
Constructor constr = colClass.getConstructor(new Class[] { Double.TYPE });
return constr.newInstance(new Object[] { new Double(0D) });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
try {
Constructor constr = colClass.getConstructor(new Class[] { Character.TYPE });
return constr.newInstance(new Object[] { new Character(' ') });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
try {
Constructor constr = colClass.getConstructor(new Class[] { Byte.TYPE });
return constr.newInstance(new Object[] { new Byte(Byte.MIN_VALUE) });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
try {
Constructor constr = colClass.getConstructor(new Class[] { Short.TYPE });
return constr.newInstance(new Object[] { new Short(Short.MIN_VALUE) });
- } catch (Exception err) {
+ } catch (NoSuchMethodException err) {
+ } catch (InstantiationException err) {
+ } catch (IllegalAccessException err) {
+ } catch (InvocationTargetException err) {
}
}
return "";
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org