You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/12 19:39:25 UTC

svn commit: r1695585 - /commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/InstructionConstants.java

Author: sebb
Date: Wed Aug 12 17:39:25 2015
New Revision: 1695585

URL: http://svn.apache.org/r1695585
Log:
Now a class, so can have ordinary static block

Modified:
    commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/InstructionConstants.java

Modified: commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/InstructionConstants.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/InstructionConstants.java?rev=1695585&r1=1695584&r2=1695585&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/InstructionConstants.java (original)
+++ commons/proper/bcel/trunk/src/main/java/org/apache/commons/bcel6/generic/InstructionConstants.java Wed Aug 12 17:39:25 2015
@@ -166,14 +166,8 @@ public class InstructionConstants {
      * branch instructions entries are set to null.
      */
     public static final Instruction[] INSTRUCTIONS = new Instruction[256];
-    /** Interfaces may have no static initializers, so we simulate this
-     * with an inner class.
-     */
-    static final Clinit bla = new Clinit();
-
-    static class Clinit {
 
-        Clinit() {
+    static {
             INSTRUCTIONS[Constants.NOP] = NOP;
             INSTRUCTIONS[Constants.ACONST_NULL] = ACONST_NULL;
             INSTRUCTIONS[Constants.ICONST_M1] = ICONST_M1;
@@ -281,6 +275,5 @@ public class InstructionConstants {
             INSTRUCTIONS[Constants.ATHROW] = ATHROW;
             INSTRUCTIONS[Constants.MONITORENTER] = MONITORENTER;
             INSTRUCTIONS[Constants.MONITOREXIT] = MONITOREXIT;
-        }
     }
 }