From 554a0a8c453b9fd0b53a6d372c1ee04d0e168ca6 Mon Sep 17 00:00:00 2001 From: Steven Caswell Date: Wed, 6 Jul 2005 01:10:57 +0000 Subject: [PATCH] removed empty statement from catch block that takes no action, using comment only to denote no action git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@209371 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/NumberUtils.java | 18 +++++++++--------- .../commons/lang/SerializationUtils.java | 4 ++-- .../org/apache/commons/lang/enums/Enum.java | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/java/org/apache/commons/lang/NumberUtils.java b/src/java/org/apache/commons/lang/NumberUtils.java index 78a63218f..54e1dfadc 100644 --- a/src/java/org/apache/commons/lang/NumberUtils.java +++ b/src/java/org/apache/commons/lang/NumberUtils.java @@ -197,7 +197,7 @@ public final class NumberUtils { try { return createLong(numeric); } catch (NumberFormatException nfe) { - ; //Too big for a long + //Too big for a long } return createBigInteger(numeric); @@ -213,8 +213,8 @@ public final class NumberUtils { return f; } - } catch (NumberFormatException nfe) { - ; // empty catch + } catch (NumberFormatException e) { + // ignore the bad number } //Fall through case 'd' : @@ -225,12 +225,12 @@ public final class NumberUtils { return d; } } catch (NumberFormatException nfe) { - ; // empty catch + // empty catch } try { return createBigDecimal(numeric); } catch (NumberFormatException e) { - ; // empty catch + // empty catch } //Fall through default : @@ -250,12 +250,12 @@ public final class NumberUtils { try { return createInteger(val); } catch (NumberFormatException nfe) { - ; // empty catch + // empty catch } try { return createLong(val); } catch (NumberFormatException nfe) { - ; // empty catch + // empty catch } return createBigInteger(val); @@ -268,7 +268,7 @@ public final class NumberUtils { return f; } } catch (NumberFormatException nfe) { - ; // empty catch + // empty catch } try { Double d = createDouble(val); @@ -276,7 +276,7 @@ public final class NumberUtils { return d; } } catch (NumberFormatException nfe) { - ; // empty catch + // empty catch } return createBigDecimal(val); diff --git a/src/java/org/apache/commons/lang/SerializationUtils.java b/src/java/org/apache/commons/lang/SerializationUtils.java index c06d1abfe..0a9fc6e7c 100644 --- a/src/java/org/apache/commons/lang/SerializationUtils.java +++ b/src/java/org/apache/commons/lang/SerializationUtils.java @@ -114,7 +114,7 @@ public class SerializationUtils { out.close(); } } catch (IOException ex) { - ; // ignore + // ignore close exception } } } @@ -170,7 +170,7 @@ public class SerializationUtils { in.close(); } } catch (IOException ex) { - ; // ignore + // ignore close exception } } } diff --git a/src/java/org/apache/commons/lang/enums/Enum.java b/src/java/org/apache/commons/lang/enums/Enum.java index 11a38556e..2bd046d2c 100644 --- a/src/java/org/apache/commons/lang/enums/Enum.java +++ b/src/java/org/apache/commons/lang/enums/Enum.java @@ -548,11 +548,11 @@ public abstract class Enum implements Comparable, Serializable { String name = (String) mth.invoke(other, null); return iName.equals(name); } catch (NoSuchMethodException e) { - ; // ignore - should never happen + // ignore - should never happen } catch (IllegalAccessException e) { - ; // ignore - should never happen + // ignore - should never happen } catch (InvocationTargetException e) { - ; // ignore - should never happen + // ignore - should never happen } return false; }