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:
parent
5ec8a51d09
commit
554a0a8c45
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue