remove uncessary parentheses from Enum.java

This commit is contained in:
Joel Dice 2010-09-01 10:10:11 -06:00
parent bcf7c0639c
commit 4273ff834c

View File

@ -34,7 +34,7 @@ public abstract class Enum<E extends Enum<E>> implements Comparable<E> {
try {
Method method = enumType.getMethod("values");
Enum values[] = (Enum[]) (method.invoke(null));
Enum values[] = (Enum[]) method.invoke(null);
for (Enum value: values) {
if (name.equals(value.name)) {
return (T) value;