fix OpenJDK 7 build error

OpenJDK 7's javac doesn't seem to like that we're accessing
Enum.ordinal in compareTo when it's private.
This commit is contained in:
Joel Dice 2011-11-19 19:22:34 -07:00
parent e4c1f923b5
commit b29db7fece

View File

@ -14,7 +14,7 @@ import java.lang.reflect.Method;
public abstract class Enum<E extends Enum<E>> implements Comparable<E> {
private final String name;
private final int ordinal;
protected final int ordinal;
public Enum(String name, int ordinal) {
this.name = name;