From 56e708aab0220d2aee283b782e7fbd3a620f36b9 Mon Sep 17 00:00:00 2001 From: Matt Weaver Date: Tue, 12 Aug 2008 16:21:39 -0600 Subject: [PATCH] Added the final method "name()", not being used presently, but useful if toString() is overridden. --- classpath/java/lang/Enum.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/lang/Enum.java b/classpath/java/lang/Enum.java index 21485d2625..5edcbf6cd5 100644 --- a/classpath/java/lang/Enum.java +++ b/classpath/java/lang/Enum.java @@ -46,6 +46,10 @@ public abstract class Enum> implements Comparable { return ordinal; } + public final String name() { + return name; + } + public String toString() { return name; }