Commit e02e59f7 authored by Jyrgen Hannus's avatar Jyrgen Hannus
Browse files

technical-debt: removed unnecessary throws declaration

parent 3098d825
......@@ -17,12 +17,7 @@ public enum FileObjectType {
this.displayName = displayName;
}
@Override
public String toString() {
return displayName;
}
public static FileObjectType valueByDisplayName(String displayName) throws IllegalArgumentException {
public static FileObjectType valueByDisplayName(String displayName) {
for (FileObjectType ot : FileObjectType.values()) {
if (ot.displayName.equalsIgnoreCase(displayName)) {
return ot;
......@@ -31,4 +26,9 @@ public enum FileObjectType {
throw new IllegalArgumentException();
}
@Override
public String toString() {
return displayName;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment