Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
Description
private Scope stringToScope(String scopeStr) {
for (Scope scope : Scope.values())
return Scope.LOCAL;
}
/////
If you introduce further scopes down the road you do not have to modify this code again – the current switch statement would have to be modified.