mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
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:
parent
e4c1f923b5
commit
b29db7fece
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user