Skip to content

Commit 5e48311

Browse files
LANG-1806: Remove extra blank lines
1 parent 755263e commit 5e48311

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/main/java/org/apache/commons/lang3/math/NumberUtils.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,14 +754,11 @@ private static boolean isParsableDecimal(final String str, final int beginIdx) {
754754
int decimalPoints = 0;
755755
boolean asciiNumeric = true;
756756
final int lastIndex = str.length() - 1;
757-
758757
for (int i = beginIdx; i < str.length(); i++) {
759758
final char ch = str.charAt(i);
760-
761759
if(i == lastIndex && (ch == 'f' || ch == 'F' || ch == 'd' || ch == 'D')){
762760
return true;
763761
}
764-
765762
final boolean isDecimalPoint = ch == '.';
766763
if (isDecimalPoint) {
767764
decimalPoints++;

src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,14 +1028,12 @@ void testIsParsable() {
10281028
assertTrue(NumberUtils.isParsable("-018.2"));
10291029
assertTrue(NumberUtils.isParsable("-.236"));
10301030
assertTrue(NumberUtils.isParsable("2."));
1031-
10321031
assertTrue(NumberUtils.isParsable("2.f"));
10331032
assertTrue(NumberUtils.isParsable("2.d"));
10341033
// Float.parseFloat("1.2e-5f")
10351034
// TODO assertTrue(NumberUtils.isParsable("1.2e-5f"));
10361035
// Double.parseDouble("1.2e-5d")
10371036
// TODO assertTrue(NumberUtils.isParsable("1.2e-5d"));
1038-
10391037
}
10401038

10411039
/**

0 commit comments

Comments
 (0)