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 e13048199ab97346c4551e63ee2ae9ca18bcce7a
Author: Gary David Gregory (Code signing key) <ggreg...@apache.org>
AuthorDate: Wed Nov 23 10:31:55 2022 -0500

    Make org.apache.bcel.generic.DCONST.value final
---
 src/main/java/org/apache/bcel/generic/DCONST.java | 3 ++-
 1 file changed, 2 insertions(+), 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 80da002d..7cf4192f 100644
--- a/src/main/java/org/apache/bcel/generic/DCONST.java
+++ b/src/main/java/org/apache/bcel/generic/DCONST.java
@@ -25,12 +25,13 @@ package org.apache.bcel.generic;
  */
 public class DCONST extends Instruction implements ConstantPushInstruction {
 
-    private double value;
+    private final double value;
 
     /**
      * Empty constructor needed for Instruction.readInstruction. Not to be 
used otherwise.
      */
     DCONST() {
+        this(0);
     }
 
     public DCONST(final double f) {

Reply via email to