Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add checkstyle rule to prevent empty statements (;)
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
authorization
/
AppRoleLevel.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/AppRoleLevel.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/AppRoleLevel.java
index f08fc84a2ca8a842c961eb92a99e7bf2e7f73631..124b495147db61d99b53b24138bf47e5dda4083c 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/AppRoleLevel.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/authorization/AppRoleLevel.java
@@
-43,13
+43,13
@@
public enum AppRoleLevel implements Serializable {
public String toStringPretty() {
return this.prettyLevel;
}
public String toStringPretty() {
return this.prettyLevel;
}
-
+
public static AppRoleLevel fromString(String levelString) {
public static AppRoleLevel fromString(String levelString) {
-
for (AppRoleLevel
level : AppRoleLevel.values()) {
-
if (
level.toString().equals(levelString)) {
-
return
level;
- }
- }
- return null;
+
for (AppRoleLevel role
level : AppRoleLevel.values()) {
+
if (role
level.toString().equals(levelString)) {
+
return role
level;
+
}
+
}
+ return null;
}
}
-}
+}