@Test public void testEmptyCPLC(){ CPLC cplc = CPLCUtils.parse(null); Assertions.assertThat(cplc).isNull(); }
public static CPLC parse(byte[] raw) { CPLC ret = null; if (raw != null) { byte[] cplc = null; if (raw.length == CPLC.SIZE + 2) { cplc = raw; } else if (raw.length == CPLC.SIZE + 5) { cplc = TlvUtil.getValue(raw, CPLC_TAG); } else { LOGGER.error("CPLC data not valid"); return null; } ret = new CPLC(); ret.parse(cplc,null); } return ret; }
CPLCUtils { public static CPLC parse(byte[] raw) { CPLC ret = null; if (raw != null) { byte[] cplc = null; if (raw.length == CPLC.SIZE + 2) { cplc = raw; } else if (raw.length == CPLC.SIZE + 5) { cplc = TlvUtil.getValue(raw, CPLC_TAG); } else { LOGGER.error("CPLC data not valid"); return null; } ret = new CPLC(); ret.parse(cplc,null); } return ret; } }
CPLCUtils { public static CPLC parse(byte[] raw) { CPLC ret = null; if (raw != null) { byte[] cplc = null; if (raw.length == CPLC.SIZE + 2) { cplc = raw; } else if (raw.length == CPLC.SIZE + 5) { cplc = TlvUtil.getValue(raw, CPLC_TAG); } else { LOGGER.error("CPLC data not valid"); return null; } ret = new CPLC(); ret.parse(cplc,null); } return ret; } private  CPLCUtils(); }
CPLCUtils { public static CPLC parse(byte[] raw) { CPLC ret = null; if (raw != null) { byte[] cplc = null; if (raw.length == CPLC.SIZE + 2) { cplc = raw; } else if (raw.length == CPLC.SIZE + 5) { cplc = TlvUtil.getValue(raw, CPLC_TAG); } else { LOGGER.error("CPLC data not valid"); return null; } ret = new CPLC(); ret.parse(cplc,null); } return ret; } private  CPLCUtils(); static CPLC parse(byte[] raw); }
CPLCUtils { public static CPLC parse(byte[] raw) { CPLC ret = null; if (raw != null) { byte[] cplc = null; if (raw.length == CPLC.SIZE + 2) { cplc = raw; } else if (raw.length == CPLC.SIZE + 5) { cplc = TlvUtil.getValue(raw, CPLC_TAG); } else { LOGGER.error("CPLC data not valid"); return null; } ret = new CPLC(); ret.parse(cplc,null); } return ret; } private  CPLCUtils(); static CPLC parse(byte[] raw);  }