Skip to content

Commit

Permalink
Force use of one of the VariableAccessor subclasses.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed May 23, 2018
1 parent 4e1c9dd commit feb11a1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -35,7 +35,7 @@
* objects. Subclasses specialize this implementation appropriate to the
* current JVM's capabilities and the mechanism for laying out variables.
*/
public class VariableAccessor {
public abstract class VariableAccessor {
/** the name of the variable */
protected final String name;
/** the index allocated for it in the variable table */
Expand Down Expand Up @@ -147,6 +147,6 @@ public String toString() {
}

/** a dummy accessor that will always return null */
public static final VariableAccessor DUMMY_ACCESSOR = new VariableAccessor(null, null, -1, -1);
public static final VariableAccessor DUMMY_ACCESSOR = new VariableAccessor(null, null, -1, -1) {};

}

0 comments on commit feb11a1

Please sign in to comment.