Skip to content

Commit f9ccec1

Browse files
committed
Fix UnnecessaryBoxing
1 parent 88cd8f9 commit f9ccec1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simple-math/src/main/java/com/craftsmanshipinsoftware/math/console/PositiveInteger.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ public int intValue() {
3232

3333
@Override
3434
public long longValue() {
35-
return this.value.longValue();
35+
return this.value;
3636
}
3737

3838
@Override
3939
public float floatValue() {
40-
return this.value.floatValue();
40+
return this.value;
4141
}
4242

4343
@Override
4444
public double doubleValue() {
45-
return this.value.doubleValue();
45+
return this.value;
4646
}
4747

4848
@Override

0 commit comments

Comments
 (0)