You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2020/12/07 09:55:41 UTC
[commons-imaging] 01/03: Fix SpotBugs issue by calling
parseDouble(str) directly
This is an automated email from the ASF dual-hosted git repository.
kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit ab38c00967044cb404092c8741f4aa583f8e8e68
Author: Bruno P. Kinoshita <ki...@apache.org>
AuthorDate: Mon Dec 7 22:53:24 2020 +1300
Fix SpotBugs issue by calling parseDouble(str) directly
---
.../org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java b/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java
index 3611980..aeb282f 100644
--- a/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java
+++ b/src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java
@@ -56,7 +56,7 @@ public class PngChunkScal extends PngChunk {
private double toDouble(final String str) throws ImageReadException {
try {
- return Double.valueOf(str);
+ return Double.parseDouble(str);
} catch (final NumberFormatException e) {
throw new ImageReadException("PNG sCAL error reading axis value - " + str);
}