Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / netconf / netconf-mapping-api / src / main / java / org / opendaylight / netconf / mapping / api / HandlingPriority.java
index c308aa8e7b68cfac756ecb6612184d396fe3efd8..4d3e025ebecd80e506f148e4d44813e22cac2785 100644 (file)
@@ -54,24 +54,25 @@ public final class HandlingPriority implements Comparable<HandlingPriority> {
     }
 
     @Override
-    public int compareTo(HandlingPriority priority) {
-        if (this == priority) {
+    @SuppressWarnings("checkstyle:parameterName")
+    public int compareTo(HandlingPriority o) {
+        if (this == o) {
             return 0;
         }
         if (isCannotHandle()) {
             return -1;
         }
-        if (priority.isCannotHandle()) {
+        if (o.isCannotHandle()) {
             return 1;
         }
 
-        if (this.priority > priority.priority) {
+        if (priority > o.priority) {
             return 1;
         }
-        if (this.priority.equals(priority.priority)) {
+        if (priority.equals(o.priority)) {
             return 0;
         }
-        if (this.priority < priority.priority) {
+        if (priority < o.priority) {
             return -1;
         }