Skip to content

Commit

Permalink
renamed NumberType.valueOf to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Jan 2, 2024
1 parent ecb9a47 commit 354b324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/test/java/io/github/mmm/scanner/NumberScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public void test() {
// System.out.println(0xAB.CDP+1D);
// System.out.println(Double.parseDouble("0xAB.CDP+1D"));
// System.out.println(34.36015625E+1D);
N n12345 = this.type.valueOf("34.36015625E+1");
N n12345 = this.type.parse("34.36015625E+1");
checkRadix("34.36015625e+1", n12345);
checkRadix("0xAB.CDP+1", n12345);
// double d = 0b0111101;
double d2 = 0x01.23456789ABCDEP+10D;
// TODO
} else {
N n123 = this.type.valueOf("123");
N n123 = this.type.parse("123");
checkRadix("123", n123);
checkRadix("0b01111011", n123);
checkRadix("0x7b", n123);
Expand Down Expand Up @@ -133,7 +133,7 @@ private N check(String number) {
N javaNumber = null;
NumberFormatException javaError = null;
try {
javaNumber = this.type.valueOf(number);
javaNumber = this.type.parse(number);
} catch (NumberFormatException e) {
javaError = e;
}
Expand Down

0 comments on commit 354b324

Please sign in to comment.