Simplify statement and write comment
Change-Id: Ie1f1cb087a2a38c4fd5749d71dc635428dbdb765
diff --git a/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/NodeFlagBitsTlv.java b/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/NodeFlagBitsTlv.java
index a12d5e3..019daa1 100644
--- a/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/NodeFlagBitsTlv.java
+++ b/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/NodeFlagBitsTlv.java
@@ -63,11 +63,10 @@
public NodeFlagBitsTlv(byte rawValue) {
this.rawValue = rawValue;
isRawValueSet = true;
- byte temp = rawValue;
- this.bOFlag = (temp & OFLAG_SET) == OFLAG_SET ? true : false;
- this.bTFlag = (temp & TFLAG_SET) == TFLAG_SET ? true : false;
- this.bEFlag = (temp & EFLAG_SET) == EFLAG_SET ? true : false;
- this.bBFlag = (temp & BFLAG_SET) == BFLAG_SET ? true : false;
+ this.bOFlag = (rawValue & OFLAG_SET) == OFLAG_SET;
+ this.bTFlag = (rawValue & TFLAG_SET) == TFLAG_SET;
+ this.bEFlag = (rawValue & EFLAG_SET) == EFLAG_SET;
+ this.bBFlag = (rawValue & BFLAG_SET) == BFLAG_SET;
}
/**