mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
remove uncessary parentheses from Enum.java
This commit is contained in:
parent
bcf7c0639c
commit
4273ff834c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user