You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/01 12:45:44 UTC

[commons-bcel] 15/49: Use valueOf factory method.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git

commit b7323d8cca74c77f9749217f13399603f5f813f6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 1 08:21:44 2022 -0400

    Use valueOf factory method.
---
 src/main/java/org/apache/bcel/generic/DCONST.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/bcel/generic/DCONST.java b/src/main/java/org/apache/bcel/generic/DCONST.java
index 3059e829..408f25e8 100644
--- a/src/main/java/org/apache/bcel/generic/DCONST.java
+++ b/src/main/java/org/apache/bcel/generic/DCONST.java
@@ -51,7 +51,7 @@ public class DCONST extends Instruction implements ConstantPushInstruction {
 
     @Override
     public Number getValue() {
-        return new Double(value);
+        return Double.valueOf(value);
     }