Migrate boolean getters
[bgpcep.git] / pcep / base-parser / src / main / java / org / opendaylight / protocol / pcep / parser / subobject / XROIpv4PrefixSubobjectParser.java
index d6b903d1d91a465cdf2c8a5a1b0ed0ef67408c92..911c0810dc3d77e3a51d4c40b3ca0797194fc6dd 100644 (file)
@@ -77,6 +77,6 @@ public class XROIpv4PrefixSubobjectParser implements XROSubobjectParser, XROSubo
         final Attribute attribute = subobject.getAttribute();
         checkArgument(attribute != null, "Attribute is mandatory.");
         body.writeByte(attribute.getIntValue());
-        XROSubobjectUtil.formatSubobject(TYPE, subobject.isMandatory(), body, buffer);
+        XROSubobjectUtil.formatSubobject(TYPE, subobject.getMandatory(), body, buffer);
     }
 }