commit | ec83894d0a5d9f83583e9246e8856daa455ddac2 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Wed Apr 09 11:28:43 2014 -0700 |
committer | Ray Milkey <ray@onlab.us> | Wed Apr 09 11:28:43 2014 -0700 |
tree | 2f2d29386e73b0fba6d138c62067993775905cbb | |
parent | 5c9f2db55b648badf6bdd0725a93f3b86a44b195 [diff] [blame] |
Enable checkstyle rule for JLS modifier order JLS specifies a preferred order for modifiers in declarations. Enabled this rule and fixed the problems that it encountered. Change-Id: I5e8fa3d29f785ced4c61fbb8c7c8b168289f06e2
diff --git a/src/main/java/net/onrc/onos/apps/bgproute/Ptree.java b/src/main/java/net/onrc/onos/apps/bgproute/Ptree.java index f85c49c..da8501f 100644 --- a/src/main/java/net/onrc/onos/apps/bgproute/Ptree.java +++ b/src/main/java/net/onrc/onos/apps/bgproute/Ptree.java
@@ -175,7 +175,7 @@ return null; } - static public int bit_to_octet(int key_bits) { + public static int bit_to_octet(int key_bits) { return Math.max((key_bits + 7) / 8, 1); }