Skip to content

Commit

Permalink
Fix new Spotbugs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 3, 2023
1 parent 95986e6 commit 29760a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ protected static String createLabelText(
scaledValue = Math.round(scaledValue * 10000) / 10000;
String decimals = Double.toString(scaledValue).split("\\.")[1];

if (Double.valueOf(decimals) == 0) {
if (Double.parseDouble(decimals) == 0) {
return Long.toString(Math.round(scaledValue));
} else {
return Double.toString(scaledValue);
Expand Down

0 comments on commit 29760a0

Please sign in to comment.