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:41 UTC
[commons-bcel] 12/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 570c60e3dad2c5de62d6236855f9d98cf6bf7221
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun May 1 08:19:50 2022 -0400
Use valueOf factory method.
---
src/main/java/org/apache/bcel/classfile/ConstantFloat.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/bcel/classfile/ConstantFloat.java b/src/main/java/org/apache/bcel/classfile/ConstantFloat.java
index 569021dc..fad62e71 100644
--- a/src/main/java/org/apache/bcel/classfile/ConstantFloat.java
+++ b/src/main/java/org/apache/bcel/classfile/ConstantFloat.java
@@ -118,6 +118,6 @@ public final class ConstantFloat extends Constant implements ConstantObject {
*/
@Override
public Object getConstantValue( final ConstantPool cp ) {
- return new Float(bytes);
+ return Float.valueOf(bytes);
}
}