fix some sonar issues
[transportpce.git] / pce / src / main / java / org / opendaylight / transportpce / pce / PceResult.java
index 4ee19df5a984c8ffa5dfd772c09289da6a797440..b7119d898968455bd1c213fcf04e741939ba6c4b 100644 (file)
@@ -9,8 +9,8 @@
 package org.opendaylight.transportpce.pce;
 
 import org.opendaylight.transportpce.common.ResponseCodes;
-import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev170426.path.description.AToZDirection;
-import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev170426.path.description.ZToADirection;
+import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev171017.path.description.AToZDirection;
+import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.pathdescription.rev171017.path.description.ZToADirection;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -21,7 +21,8 @@ public class PceResult {
     private boolean calcStatus = false;
     private String responseCode = ResponseCodes.RESPONSE_FAILED;
     private long resultWavelength = -1;
-    private long rate = -1; // for now it is constant returned as received from A-end
+    // for now it is constant returned as received from A-end
+    private long rate = -1;
 
     public enum LocalCause {
         NONE, TOO_HIGH_LATENCY, NO_PATH_EXISTS, INT_PROBLEM;
@@ -48,7 +49,7 @@ public class PceResult {
                 this.calcMessage = "No path available";
                 break;
             default:
-                LOG.error("setRC: RespondeCodes unknown");//requires sl4j but not imported
+                LOG.error("setRC: RespondeCodes unknown");
         }
     }
 
@@ -86,12 +87,12 @@ public class PceResult {
         return this.ztoadirection;
     }
 
-    public void setAtoZDirection(AToZDirection atozdir) {
-        this.atozdirection = atozdir;
+    public void setAtoZDirection(AToZDirection atozdirectionIn) {
+        this.atozdirection = atozdirectionIn;
     }
 
-    public void setZtoADirection(ZToADirection ztoadir) {
-        this.ztoadirection = ztoadir;
+    public void setZtoADirection(ZToADirection ztoadirectionIn) {
+        this.ztoadirection = ztoadirectionIn;
     }
 
     public long getRate() {