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
This commit is contained in:
Steven Caswell 2005-07-06 01:10:57 +00:00
parent 5ec8a51d09
commit 554a0a8c45
3 changed files with 14 additions and 14 deletions

View File

@ -197,7 +197,7 @@ public final class NumberUtils {
try { try {
return createLong(numeric); return createLong(numeric);
} catch (NumberFormatException nfe) { } catch (NumberFormatException nfe) {
; //Too big for a long //Too big for a long
} }
return createBigInteger(numeric); return createBigInteger(numeric);
@ -213,8 +213,8 @@ public final class NumberUtils {
return f; return f;
} }
} catch (NumberFormatException nfe) { } catch (NumberFormatException e) {
; // empty catch // ignore the bad number
} }
//Fall through //Fall through
case 'd' : case 'd' :
@ -225,12 +225,12 @@ public final class NumberUtils {
return d; return d;
} }
} catch (NumberFormatException nfe) { } catch (NumberFormatException nfe) {
; // empty catch // empty catch
} }
try { try {
return createBigDecimal(numeric); return createBigDecimal(numeric);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
; // empty catch // empty catch
} }
//Fall through //Fall through
default : default :
@ -250,12 +250,12 @@ public final class NumberUtils {
try { try {
return createInteger(val); return createInteger(val);
} catch (NumberFormatException nfe) { } catch (NumberFormatException nfe) {
; // empty catch // empty catch
} }
try { try {
return createLong(val); return createLong(val);
} catch (NumberFormatException nfe) { } catch (NumberFormatException nfe) {
; // empty catch // empty catch
} }
return createBigInteger(val); return createBigInteger(val);
@ -268,7 +268,7 @@ public final class NumberUtils {
return f; return f;
} }
} catch (NumberFormatException nfe) { } catch (NumberFormatException nfe) {
; // empty catch // empty catch
} }
try { try {
Double d = createDouble(val); Double d = createDouble(val);
@ -276,7 +276,7 @@ public final class NumberUtils {
return d; return d;
} }
} catch (NumberFormatException nfe) { } catch (NumberFormatException nfe) {
; // empty catch // empty catch
} }
return createBigDecimal(val); return createBigDecimal(val);

View File

@ -114,7 +114,7 @@ public class SerializationUtils {
out.close(); out.close();
} }
} catch (IOException ex) { } catch (IOException ex) {
; // ignore // ignore close exception
} }
} }
} }
@ -170,7 +170,7 @@ public class SerializationUtils {
in.close(); in.close();
} }
} catch (IOException ex) { } catch (IOException ex) {
; // ignore // ignore close exception
} }
} }
} }

View File

@ -548,11 +548,11 @@ public abstract class Enum implements Comparable, Serializable {
String name = (String) mth.invoke(other, null); String name = (String) mth.invoke(other, null);
return iName.equals(name); return iName.equals(name);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
; // ignore - should never happen // ignore - should never happen
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
; // ignore - should never happen // ignore - should never happen
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
; // ignore - should never happen // ignore - should never happen
} }
return false; return false;
} }