mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +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 {
|
try {
|
||||||
Method method = enumType.getMethod("values");
|
Method method = enumType.getMethod("values");
|
||||||
Enum values[] = (Enum[]) (method.invoke(null));
|
Enum values[] = (Enum[]) method.invoke(null);
|
||||||
for (Enum value: values) {
|
for (Enum value: values) {
|
||||||
if (name.equals(value.name)) {
|
if (name.equals(value.name)) {
|
||||||
return (T) value;
|
return (T) value;
|
||||||
|
Loading…
Reference in New Issue
Block a user