Skip to content

Commit 9bac26b

Browse files
author
shaoxinke
committed
fix: changed return types to primitive types
1 parent 53d24ea commit 9bac26b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

devkit-utils/src/main/java/com/onixbyte/devkit/utils/ChainedCalcUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public BigDecimal getValue(int scale) {
240240
*
241241
* @return the current value as a {@link Double}
242242
*/
243-
public Double getDouble() {
243+
public double getDouble() {
244244
return getValue().doubleValue();
245245
}
246246

@@ -250,7 +250,7 @@ public Double getDouble() {
250250
* @param scale the scale for the result
251251
* @return the current value as a {@link Double} with the specified scale
252252
*/
253-
public Double getDouble(int scale) {
253+
public double getDouble(int scale) {
254254
return getValue(scale).doubleValue();
255255
}
256256

@@ -259,7 +259,7 @@ public Double getDouble(int scale) {
259259
*
260260
* @return the current value as a {@link Long}
261261
*/
262-
public Long getLong() {
262+
public long getLong() {
263263
return getValue().longValue();
264264
}
265265

@@ -268,7 +268,7 @@ public Long getLong() {
268268
*
269269
* @return the current value as an {@link Integer}
270270
*/
271-
public Integer getInteger() {
271+
public int getInteger() {
272272
return getValue().intValue();
273273
}
274274

0 commit comments

Comments
 (0)