From 3c70e828350bdba0a3703211f312ae0f7f170df0 Mon Sep 17 00:00:00 2001 From: Andrew John Hughes Date: Mon, 27 Nov 2006 23:25:09 +0000 Subject: 2006-11-27 Andrew John Hughes * java/lang/Enum.java: Make name and ordinal final. --- ChangeLog | 5 +++++ java/lang/Enum.java | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1670a2ded..cb214e8d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-27 Andrew John Hughes + + * java/lang/Enum.java: + Make name and ordinal final. + 2006-11-21 Andrew John Hughes * sun/reflect/annotation/AnnotationParser.java, diff --git a/java/lang/Enum.java b/java/lang/Enum.java index 374940333..f141619be 100644 --- a/java/lang/Enum.java +++ b/java/lang/Enum.java @@ -60,13 +60,13 @@ public abstract class Enum> /** * The name of this enum constant. */ - String name; + final String name; /** * The number of this enum constant. Each constant is given a number * which matches the order in which it was declared, starting with zero. */ - int ordinal; + final int ordinal; /** * This constructor is used by the compiler to create enumeration constants. -- cgit v1.2.1