commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1695558 - /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
Date Wed, 12 Aug 2015 15:35:39 GMT
Author: sebb
Date: Wed Aug 12 15:35:39 2015
New Revision: 1695558

URL: http://svn.apache.org/r1695558
Log:
BCEL-235 Remove unused setters
(incomplete)

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java?rev=1695558&r1=1695557&r2=1695558&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
(original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/classfile/AnnotationDefault.java
Wed Aug 12 15:35:39 2015
@@ -33,7 +33,7 @@ public class AnnotationDefault extends A
     
     private static final long serialVersionUID = -4017327188724019487L;
 
-    private ElementValue default_value; // TODO could this be made final?
+    private final ElementValue default_value; // TODO could this be made final?
 
     /**
      * @param name_index    Index pointing to the name <em>Code</em>
@@ -42,8 +42,7 @@ public class AnnotationDefault extends A
      * @param constant_pool Array of constants
      */
     AnnotationDefault(int name_index, int length, DataInput input, ConstantPool constant_pool)
throws IOException {
-        this(name_index, length, (ElementValue) null, constant_pool);
-        default_value = ElementValue.readElementValue(input, constant_pool);
+        this(name_index, length, ElementValue.readElementValue(input, constant_pool), constant_pool);
     }
 
     /**
@@ -70,13 +69,6 @@ public class AnnotationDefault extends A
     }
 
     /**
-     * @param defaultValue the default value of this methodinfo's annotation
-     */
-    public final void setDefaultValue(ElementValue defaultValue) {
-        default_value = defaultValue;
-    }
-
-    /**
      * @return the default value
      */
     public final ElementValue getDefaultValue() {



Mime
View raw message