Statement unnecessarily nested within else clause.
This commit is contained in:
parent
0432e83a42
commit
ddcf6aa50b
|
@ -1509,9 +1509,8 @@ public static boolean isParsable(final String str) {
|
||||||
}
|
}
|
||||||
if( StringUtils.startsWith( str, "-" ) ) {
|
if( StringUtils.startsWith( str, "-" ) ) {
|
||||||
return isDigits( StringUtils.replaceOnce( str.substring(1), ".", StringUtils.EMPTY ) );
|
return isDigits( StringUtils.replaceOnce( str.substring(1), ".", StringUtils.EMPTY ) );
|
||||||
} else {
|
|
||||||
return isDigits( StringUtils.replaceOnce( str, ".", StringUtils.EMPTY ) );
|
|
||||||
}
|
}
|
||||||
|
return isDigits( StringUtils.replaceOnce( str, ".", StringUtils.EMPTY ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue