Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Reorder public/private modifiers as per JLS. (fixes sonar warnings)
[controller.git]
/
third-party
/
openflowj
/
src
/
main
/
java
/
org
/
openflow
/
protocol
/
OFType.java
diff --git
a/third-party/openflowj/src/main/java/org/openflow/protocol/OFType.java
b/third-party/openflowj/src/main/java/org/openflow/protocol/OFType.java
index 92a2e866f02840f57c2f70dcf4f8b383eb6dccd9..603f4ccb9e529f20251148e3db452d755eb6e3c3 100644
(file)
--- a/
third-party/openflowj/src/main/java/org/openflow/protocol/OFType.java
+++ b/
third-party/openflowj/src/main/java/org/openflow/protocol/OFType.java
@@
-158,7
+158,7
@@
public enum OFType {
* @param i OpenFlow wire protocol type
* @param t type
*/
* @param i OpenFlow wire protocol type
* @param t type
*/
-
static publ
ic void addMapping(byte i, OFType t) {
+
public stat
ic void addMapping(byte i, OFType t) {
if (mapping == null)
mapping = new OFType[32];
OFType.mapping[i] = t;
if (mapping == null)
mapping = new OFType[32];
OFType.mapping[i] = t;
@@
-169,7
+169,7
@@
public enum OFType {
*
* @param i OpenFlow wire protocol type
*/
*
* @param i OpenFlow wire protocol type
*/
-
static publ
ic void removeMapping(byte i) {
+
public stat
ic void removeMapping(byte i) {
OFType.mapping[i] = null;
}
OFType.mapping[i] = null;
}
@@
-181,7
+181,7
@@
public enum OFType {
* @return OFType enum type
*/
* @return OFType enum type
*/
-
static publ
ic OFType valueOf(Byte i) {
+
public stat
ic OFType valueOf(Byte i) {
return OFType.mapping[i];
}
return OFType.mapping[i];
}