remove unnecesary boxing / unboxing
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / PSTUtil.java
index d5ffe2ed3d64b236612ad16ad35b34ee2a060b47..1769c26cb7f1489d12719cdabafe339edae12f7f 100644 (file)
@@ -21,7 +21,7 @@ public final class PSTUtil {
      * @return  true if setup is via RSVP-TE signaling protocol
      */
     public static boolean isDefaultPST(final PathSetupType pst) {
-        if (pst != null && pst.getPst() != null && pst.getPst().shortValue() != 0) {
+        if (pst != null && pst.getPst() != null && pst.getPst() != 0) {
             return false;
         }
         return true;