diff options
author | Ying Wang <wangying@google.com> | 2013-09-20 16:03:52 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2013-09-20 16:03:52 -0700 |
commit | a9a297845620cfe56bbe3b9f8de1331b7ec54574 (patch) | |
tree | 4499cb45e0b2f858901efbc35d02cf8fcdf081da /libart | |
parent | 8d2ec3eee3dd73b57d94dc1a547f6c07b6fb23c7 (diff) | |
download | libcore-a9a297845620cfe56bbe3b9f8de1331b7ec54574.zip libcore-a9a297845620cfe56bbe3b9f8de1331b7ec54574.tar.gz libcore-a9a297845620cfe56bbe3b9f8de1331b7ec54574.tar.bz2 |
Fix Java 7 build.
See http://bugs.sun.com/view_bug.do?bug_id=6904536
Bug: 8992787
Change-Id: Ib84a28a3df4517be86cd3342e6f916a5d905be89
Diffstat (limited to 'libart')
-rw-r--r-- | libart/src/main/java/java/lang/Enum.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libart/src/main/java/java/lang/Enum.java b/libart/src/main/java/java/lang/Enum.java index f98554a..43ac113 100644 --- a/libart/src/main/java/java/lang/Enum.java +++ b/libart/src/main/java/java/lang/Enum.java @@ -148,7 +148,7 @@ public abstract class Enum<E extends Enum<E>> implements Serializable, Comparabl * @see java.lang.Comparable */ public final int compareTo(E o) { - return ordinal - o.ordinal; + return ordinal - o.ordinal(); } /** |