summaryrefslogtreecommitdiff
path: root/java/lang/Enum.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/lang/Enum.java')
-rw-r--r--java/lang/Enum.java4
1 files changed, 2 insertions, 2 deletions
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<T extends Enum<T>>
/**
* 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.