Sho SHIMIZU
Committed by Gerrit Code Review

Flip right hand side and left hand side of if-condition

Change-Id: I5e6b316f447a4a842290f21f3d60e05637793d5e
...@@ -51,7 +51,7 @@ public class PcepErrorInfoVer1 implements PcepErrorInfo { ...@@ -51,7 +51,7 @@ public class PcepErrorInfoVer1 implements PcepErrorInfo {
51 public PcepErrorInfoVer1(LinkedList<PcepRPObject> llRPObjList, LinkedList<PcepTEObject> llTEObjList, 51 public PcepErrorInfoVer1(LinkedList<PcepRPObject> llRPObjList, LinkedList<PcepTEObject> llTEObjList,
52 LinkedList<PcepErrorObject> llErrObjList) { 52 LinkedList<PcepErrorObject> llErrObjList) {
53 this.errList = new LinkedList<PcepError>(); 53 this.errList = new LinkedList<PcepError>();
54 - if ((null != llErrObjList) && (!llErrObjList.isEmpty())) { 54 + if ((llErrObjList != null) && (!llErrObjList.isEmpty())) {
55 this.errList.add(new PcepErrorVer1(llRPObjList, llTEObjList, llErrObjList)); 55 this.errList.add(new PcepErrorVer1(llRPObjList, llTEObjList, llErrObjList));
56 } 56 }
57 } 57 }
......
...@@ -163,7 +163,7 @@ public class PcepErrorMsgVer1 implements PcepErrorMsg { ...@@ -163,7 +163,7 @@ public class PcepErrorMsgVer1 implements PcepErrorMsg {
163 this.errInfo = new PcepErrorInfoVer1(null, null, llErrObjList); 163 this.errInfo = new PcepErrorInfoVer1(null, null, llErrObjList);
164 this.errInfo.read(cb); 164 this.errInfo.read(cb);
165 165
166 - } else if ((null != llErrObjList) && (!llErrObjList.isEmpty())) { 166 + } else if ((llErrObjList != null) && (!llErrObjList.isEmpty())) {
167 //If only PCEP-ERROR list is present then store it in errObjListWithOpen. 167 //If only PCEP-ERROR list is present then store it in errObjListWithOpen.
168 this.errObjListWithOpen = new ErrorObjListWithOpen(llErrObjList); 168 this.errObjListWithOpen = new ErrorObjListWithOpen(llErrObjList);
169 } else { 169 } else {
......