Forgot to clean up exception name in the previous commit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137778 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e902406b03
commit
bff3f2fdb1
|
@ -267,7 +267,7 @@ import org.apache.commons.lang.StringUtils;
|
|||
* @author Chris Webb
|
||||
* @author Mike Bowler
|
||||
* @since 1.0
|
||||
* @version $Id: Enum.java,v 1.25 2004/02/12 00:48:30 ggregory Exp $
|
||||
* @version $Id: Enum.java,v 1.26 2004/02/12 00:49:30 ggregory Exp $
|
||||
*/
|
||||
public abstract class Enum implements Comparable, Serializable {
|
||||
|
||||
|
@ -580,11 +580,11 @@ public abstract class Enum implements Comparable, Serializable {
|
|||
Method mth = other.getClass().getMethod("getName", null);
|
||||
String name = (String) mth.invoke(other, null);
|
||||
return iName.equals(name);
|
||||
} catch (NoSuchMethodException ex2) {
|
||||
} catch (NoSuchMethodException e) {
|
||||
// ignore - should never happen
|
||||
} catch (IllegalAccessException ex2) {
|
||||
} catch (IllegalAccessException e) {
|
||||
// ignore - should never happen
|
||||
} catch (InvocationTargetException ex2) {
|
||||
} catch (InvocationTargetException e) {
|
||||
// ignore - should never happen
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue