Sho SHIMIZU
Committed by Gerrit Code Review

Use diamond operator

Change-Id: Ic7637e41b9e6a4ac04cd81caf07cea0e7a30909c
Showing 38 changed files with 70 additions and 70 deletions
......@@ -569,7 +569,7 @@ class PcepChannelHandler extends IdleStateAwareChannelHandler {
* @throws PcepParseException while bulding error message
*/
public PcepErrorMsg getErrorMsg(byte errorType, byte errorValue) throws PcepParseException {
LinkedList<PcepErrorObject> llerrObj = new LinkedList<PcepErrorObject>();
LinkedList<PcepErrorObject> llerrObj = new LinkedList<>();
PcepErrorMsg errMsg;
PcepErrorObject errObj = factory1.buildPcepErrorObject()
......@@ -597,7 +597,7 @@ class PcepChannelHandler extends IdleStateAwareChannelHandler {
} else {
//If Error caught in other than Openmessage
LinkedList<PcepError> llPcepErr = new LinkedList<PcepError>();
LinkedList<PcepError> llPcepErr = new LinkedList<>();
PcepError pcepErr = factory1.buildPcepError()
.setErrorObjList(llerrObj)
......
......@@ -47,7 +47,7 @@ public class PcepClientControllerImpl implements PcepClientController {
private static final Logger log = LoggerFactory.getLogger(PcepClientControllerImpl.class);
protected ConcurrentHashMap<PccId, PcepClient> connectedClients =
new ConcurrentHashMap<PccId, PcepClient>();
new ConcurrentHashMap<>();
protected PcepClientAgent agent = new PcepClientAgent();
protected Set<PcepClientListener> pcepClientListener = new HashSet<>();
......
......@@ -57,7 +57,7 @@ public class PcepMessageDecoder extends FrameDecoder {
// a list of the parsed messages to the controller.
// The performance *may or may not* not be as good as before.
PcepMessageReader<PcepMessage> reader = PcepFactories.getGenericReader();
List<PcepMessage> msgList = new LinkedList<PcepMessage>();
List<PcepMessage> msgList = new LinkedList<>();
while (buffer.readableBytes() > 0) {
PcepMessage message = reader.readFrom(buffer);
......
......@@ -144,7 +144,7 @@ public class PcepAttributeVer1 implements PcepAttribute {
public boolean parseMetricList(ChannelBuffer cb) throws PcepParseException {
if (llMetricList == null) {
llMetricList = new LinkedList<PcepMetricObject>();
llMetricList = new LinkedList<>();
}
PcepMetricObject metriclist;
......
......@@ -131,7 +131,7 @@ class PcepCloseMsgVer1 implements PcepCloseMsg {
*/
public static LinkedList<PcepValueType> parseOptionalTlv(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
/*
rfc 5440:
Optional TLVs may be included within the CLOSE object body. The
......@@ -164,7 +164,7 @@ class PcepCloseMsgVer1 implements PcepCloseMsg {
private PcepObjectHeader closeObjHeader;
private boolean bIsReasonSet = false;
private byte yReason;
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -153,7 +153,7 @@ public class PcepEroObjectVer1 implements PcepEroObject {
PcepObjectHeader.REQ_OBJ_OPTIONAL_PROCESS, PcepObjectHeader.RSP_OBJ_PROCESSED, ERO_OBJ_MINIMUM_LENGTH);
private PcepObjectHeader eroObjHeader;
private LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
/**
* reset variables.
......@@ -213,7 +213,7 @@ public class PcepEroObjectVer1 implements PcepEroObject {
public static PcepEroObject read(ChannelBuffer cb) throws PcepParseException {
PcepObjectHeader eroObjHeader;
LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
eroObjHeader = PcepObjectHeader.read(cb);
......@@ -239,7 +239,7 @@ public class PcepEroObjectVer1 implements PcepEroObject {
*/
protected static LinkedList<PcepValueType> parseSubObjects(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
while (0 < cb.readableBytes()) {
......@@ -342,7 +342,7 @@ public class PcepEroObjectVer1 implements PcepEroObject {
private boolean bIFlag;
private PcepObjectHeader eroObjHeader;
LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
@Override
public PcepEroObject build() {
......
......@@ -50,7 +50,7 @@ public class PcepErrorInfoVer1 implements PcepErrorInfo {
*/
public PcepErrorInfoVer1(LinkedList<PcepRPObject> llRPObjList, LinkedList<PcepTEObject> llTEObjList,
LinkedList<PcepErrorObject> llErrObjList) {
this.errList = new LinkedList<PcepError>();
this.errList = new LinkedList<>();
if ((llErrObjList != null) && (!llErrObjList.isEmpty())) {
this.errList.add(new PcepErrorVer1(llRPObjList, llTEObjList, llErrObjList));
}
......@@ -133,7 +133,7 @@ public class PcepErrorInfoVer1 implements PcepErrorInfo {
@Override
public LinkedList<Integer> getErrorType() {
LinkedList<Integer> errorType = new LinkedList<Integer>();
LinkedList<Integer> errorType = new LinkedList<>();
ListIterator<PcepError> listIterator = errList.listIterator();
PcepErrorObject errObj;
int error;
......@@ -154,7 +154,7 @@ public class PcepErrorInfoVer1 implements PcepErrorInfo {
@Override
public LinkedList<Integer> getErrorValue() {
LinkedList<Integer> errorValue = new LinkedList<Integer>();
LinkedList<Integer> errorValue = new LinkedList<>();
ListIterator<PcepError> listIterator = errList.listIterator();
PcepErrorObject errObj;
int error;
......
......@@ -142,7 +142,7 @@ public class PcepErrorMsgVer1 implements PcepErrorMsg {
}
//parse PCEP-ERROR list
llErrObjList = new LinkedList<PcepErrorObject>();
llErrObjList = new LinkedList<>();
tempObjHeader = parseErrorObjectList(llErrObjList, cb);
//check whether OPEN-OBJECT is present.
......@@ -323,7 +323,7 @@ public class PcepErrorMsgVer1 implements PcepErrorMsg {
* @return error types list
*/
public LinkedList<Integer> getErrorType() {
LinkedList<Integer> llErrorType = new LinkedList<Integer>();
LinkedList<Integer> llErrorType = new LinkedList<>();
if ((errObjListWithOpen != null)
&& (errObjListWithOpen.isErrorObjListWithOpenPresent())) {
llErrorType = errObjListWithOpen.getErrorType();
......@@ -340,7 +340,7 @@ public class PcepErrorMsgVer1 implements PcepErrorMsg {
* @return error value list
*/
public LinkedList<Integer> getErrorValue() {
LinkedList<Integer> llErrorValue = new LinkedList<Integer>();
LinkedList<Integer> llErrorValue = new LinkedList<>();
if ((errObjListWithOpen != null)
&& (errObjListWithOpen.isErrorObjListWithOpenPresent())) {
llErrorValue = errObjListWithOpen.getErrorValue();
......
......@@ -149,7 +149,7 @@ public class PcepErrorObjectVer1 implements PcepErrorObject {
*/
protected static LinkedList<PcepValueType> parseOptionalTlv(ChannelBuffer cb) {
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<>();
byte[] yTemp = new byte[cb.readableBytes()];
cb.readBytes(yTemp);
......@@ -239,7 +239,7 @@ public class PcepErrorObjectVer1 implements PcepErrorObject {
private boolean bIsIFlagSet = false;
private boolean bIFlag;
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
@Override
public PcepErrorObject build() {
......
......@@ -117,7 +117,7 @@ public class PcepErrorVer1 implements PcepError {
byte yObjClass;
byte yObjType;
llRPObjList = new LinkedList<PcepRPObject>();
llRPObjList = new LinkedList<>();
// caller should verify for RP object
if (cb.readableBytes() < OBJECT_HEADER_LENGTH) {
......@@ -157,7 +157,7 @@ public class PcepErrorVer1 implements PcepError {
byte yObjClass;
byte yObjType;
llTEObjList = new LinkedList<PcepTEObject>();
llTEObjList = new LinkedList<>();
// caller should verify for TE object
if (cb.readableBytes() < OBJECT_HEADER_LENGTH) {
......@@ -199,7 +199,7 @@ public class PcepErrorVer1 implements PcepError {
byte yObjType;
boolean bIsErrorObjFound = false;
llErrObjList = new LinkedList<PcepErrorObject>();
llErrObjList = new LinkedList<>();
// caller should verify for RP object
if (cb.readableBytes() < OBJECT_HEADER_LENGTH) {
......
......@@ -87,7 +87,7 @@ class PcepInitiateMsgVer1 implements PcepInitiateMsg {
return null;
}
llPcInitiatedLspRequestList = new LinkedList<PcInitiatedLspRequest>();
llPcInitiatedLspRequestList = new LinkedList<>();
byte version = cb.readByte();
version = (byte) (version >> PcepMessageVer1.SHIFT_FLAG);
......
......@@ -73,7 +73,7 @@ public class PcepIroObjectVer1 implements PcepIroObject {
private byte yPrefixLength;
private byte yResvd;
private PcepObjectHeader iroObjHeader;
private LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
/**
* Default constructor.
......@@ -152,7 +152,7 @@ public class PcepIroObjectVer1 implements PcepIroObject {
*/
protected static LinkedList<PcepValueType> parseSubObjects(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
while (0 < cb.readableBytes()) {
......@@ -228,7 +228,7 @@ public class PcepIroObjectVer1 implements PcepIroObject {
private boolean bIsHeaderSet = false;
private PcepObjectHeader iroObjHeader;
LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -138,7 +138,7 @@ public class PcepLabelObjectVer1 implements PcepLabelObject {
int label;
// Optional TLV
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
labelObjHeader = PcepObjectHeader.read(cb);
//take only LspObject buffer.
......@@ -191,7 +191,7 @@ public class PcepLabelObjectVer1 implements PcepLabelObject {
*/
protected static LinkedList<PcepValueType> parseOptionalTlv(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<>();
while (MINIMUM_COMMON_HEADER_LENGTH <= cb.readableBytes()) {
......@@ -272,7 +272,7 @@ public class PcepLabelObjectVer1 implements PcepLabelObject {
private boolean bOFlag;
private int label;
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -142,7 +142,7 @@ public class PcepLabelRangeObjectVer1 implements PcepLabelRangeObject {
int rangeSize;
int labelBase;
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
labelRangeObjHeader = PcepObjectHeader.read(cb);
......@@ -189,7 +189,7 @@ public class PcepLabelRangeObjectVer1 implements PcepLabelRangeObject {
*/
public static LinkedList<PcepValueType> parseOptionalTlv(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<>();
while (MINIMUM_COMMON_HEADER_LENGTH <= cb.readableBytes()) {
......@@ -272,7 +272,7 @@ public class PcepLabelRangeObjectVer1 implements PcepLabelRangeObject {
private boolean bIFlag;
private PcepObjectHeader labelRangeObjHeader;
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
@Override
public PcepLabelRangeObject build() throws PcepParseException {
......
......@@ -104,7 +104,7 @@ public class PcepLabelRangeVer1 implements PcepLabelRange {
throw new PcepParseException("Exception while parsing srp object");
}
LinkedList<PcepLabelRangeObject> llLabelRangeList = new LinkedList<PcepLabelRangeObject>();
LinkedList<PcepLabelRangeObject> llLabelRangeList = new LinkedList<>();
boolean bFoundLabelRangeObj = false;
while (0 < cb.readableBytes()) {
//parse and store <labelrange-list>
......
......@@ -118,7 +118,7 @@ class PcepLabelUpdateMsgVer1 implements PcepLabelUpdateMsg {
public LinkedList<PcepLabelUpdate> parsePcLabelUpdateList(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepLabelUpdate> llPcLabelUpdateList;
llPcLabelUpdateList = new LinkedList<PcepLabelUpdate>();
llPcLabelUpdateList = new LinkedList<>();
while (0 < cb.readableBytes()) {
llPcLabelUpdateList.add(PcepLabelUpdateVer1.read(cb));
......
......@@ -185,7 +185,7 @@ public class PcepLabelUpdateVer1 implements PcepLabelUpdate {
labelDownload.setLspObject(PcepLspObjectVer1.read(cb));
//<label-list>
LinkedList<PcepLabelObject> llLabelList = new LinkedList<PcepLabelObject>();
LinkedList<PcepLabelObject> llLabelList = new LinkedList<>();
PcepLabelObject labelObject;
while (0 < cb.readableBytes()) {
......
......@@ -234,7 +234,7 @@ public class PcepLspObjectVer1 implements PcepLspObject {
boolean bDFlag;
// Optional TLV
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
lspObjHeader = PcepObjectHeader.read(cb);
......@@ -314,7 +314,7 @@ public class PcepLspObjectVer1 implements PcepLspObject {
LinkedList<PcepValueType> llOutOptionalTlv;
llOutOptionalTlv = new LinkedList<PcepValueType>();
llOutOptionalTlv = new LinkedList<>();
while (MINIMUM_COMMON_HEADER_LENGTH <= cb.readableBytes()) {
......
......@@ -290,7 +290,7 @@ public class PcepLspaObjectVer1 implements PcepLspaObject {
*/
public static LinkedList<PcepValueType> parseOptionalTlv(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<>();
return llOutOptionalTlv;
}
......
......@@ -213,7 +213,7 @@ public class PcepOpenObjectVer1 implements PcepOpenObject {
LinkedList<PcepValueType> llOptionalTlv;
llOptionalTlv = new LinkedList<PcepValueType>();
llOptionalTlv = new LinkedList<>();
while (4 <= cb.readableBytes()) {
PcepValueType tlv;
......@@ -360,7 +360,7 @@ public class PcepOpenObjectVer1 implements PcepOpenObject {
private boolean bIsSessionIDSet = false;
private byte sessionID;
private boolean bIsOptionalTlvSet = false;
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -189,7 +189,7 @@ public class PcepRPObjectVer1 implements PcepRPObject {
boolean bBFlag;
boolean bRFlag;
byte yPriFlag; // 3bytes
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
rpObjHeader = PcepObjectHeader.read(cb);
......@@ -253,7 +253,7 @@ public class PcepRPObjectVer1 implements PcepRPObject {
*/
protected static LinkedList<PcepValueType> parseOptionalTlv(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<>();
//Currently no optional TLvs, will be added based on requirements.
return llOutOptionalTlv;
}
......@@ -292,7 +292,7 @@ public class PcepRPObjectVer1 implements PcepRPObject {
private boolean bBFlag;
private boolean bRFlag;
private byte yPriFlag;
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -88,7 +88,7 @@ class PcepReportMsgVer1 implements PcepReportMsg {
throw new PcepParseException("Received packet size " + cb.readableBytes()
+ " is less than the expected size: " + PACKET_MINIMUM_LENGTH);
}
llStateReportList = new LinkedList<PcepStateReport>();
llStateReportList = new LinkedList<>();
byte version = cb.readByte();
version = (byte) (version >> PcepMessageVer1.SHIFT_FLAG);
......
......@@ -111,7 +111,7 @@ public class PcepRroObjectVer1 implements PcepRroObject {
private byte prefixLength;
private byte resvd;
PcepObjectHeader rroObjHeader;
private LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
/**
* Reset variables.
......@@ -190,7 +190,7 @@ public class PcepRroObjectVer1 implements PcepRroObject {
*/
protected static LinkedList<PcepValueType> parseSubObjects(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
while (0 < cb.readableBytes()) {
......@@ -275,7 +275,7 @@ public class PcepRroObjectVer1 implements PcepRroObject {
private boolean bIsHeaderSet = false;
private PcepObjectHeader rroObjHeader;
LinkedList<PcepValueType> llSubObjects = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llSubObjects = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -155,7 +155,7 @@ public class PcepSrpObjectVer1 implements PcepSrpObject {
int srpID;
int flags;
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
srpObjHeader = PcepObjectHeader.read(cb);
......@@ -212,7 +212,7 @@ public class PcepSrpObjectVer1 implements PcepSrpObject {
*/
public static LinkedList<PcepValueType> parseOptionalTlv(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOutOptionalTlv = new LinkedList<>();
while (MINIMUM_COMMON_HEADER_LENGTH <= cb.readableBytes()) {
......@@ -289,7 +289,7 @@ public class PcepSrpObjectVer1 implements PcepSrpObject {
private PcepObjectHeader srpObjHeader;
private int srpId;
private boolean bRFlag;
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -277,7 +277,7 @@ public class PcepTEObjectVer1 implements PcepTEObject {
LinkedList<PcepValueType> llOutOptionalTlv;
llOutOptionalTlv = new LinkedList<PcepValueType>();
llOutOptionalTlv = new LinkedList<>();
while (MINIMUM_TLV_HEADER_LENGTH <= cb.readableBytes()) {
......@@ -377,7 +377,7 @@ public class PcepTEObjectVer1 implements PcepTEObject {
private boolean bRFlag;
private boolean bSFlag;
private int iTEId;
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<PcepValueType>();
private LinkedList<PcepValueType> llOptionalTlv = new LinkedList<>();
private boolean bIsPFlagSet = false;
private boolean bPFlag;
......
......@@ -69,7 +69,7 @@ class PcepTEReportMsgVer1 implements PcepTEReportMsg {
return null;
}
teReportList = new LinkedList<PcepTEObject>();
teReportList = new LinkedList<>();
byte version = cb.readByte();
version = (byte) (version >> PcepMessageVer1.SHIFT_FLAG);
......
......@@ -100,7 +100,7 @@ class PcepUpdateMsgVer1 implements PcepUpdateMsg {
throw new PcepParseException("Readable bytes is less than update message minimum length");
}
llUpdateRequestList = new LinkedList<PcepUpdateRequest>();
llUpdateRequestList = new LinkedList<>();
// fixed value property version == 1
byte version = cb.readByte();
......
......@@ -57,7 +57,7 @@ public class ErrorObjListWithOpen {
* @return error types list
*/
public LinkedList<Integer> getErrorType() {
LinkedList<Integer> errorType = new LinkedList<Integer>();
LinkedList<Integer> errorType = new LinkedList<>();
if (llerrorObjList != null) {
ListIterator<PcepErrorObject> errObjListIterator = llerrorObjList.listIterator();
int error;
......@@ -77,7 +77,7 @@ public class ErrorObjListWithOpen {
* @return error values list
*/
public LinkedList<Integer> getErrorValue() {
LinkedList<Integer> errorValue = new LinkedList<Integer>();
LinkedList<Integer> errorValue = new LinkedList<>();
if (llerrorObjList != null) {
ListIterator<PcepErrorObject> errObjListIterator = llerrorObjList.listIterator();
int error;
......
......@@ -184,7 +184,7 @@ public class LocalTENodeDescriptorsTlv implements PcepValueType {
public static PcepValueType read(ChannelBuffer c, short hLength) throws PcepParseException {
// Node Descriptor Sub-TLVs (variable)
LinkedList<PcepValueType> llNodeDescriptorSubTLVs = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llNodeDescriptorSubTLVs = new LinkedList<>();
ChannelBuffer tempCb = c.readBytes(hLength);
......
......@@ -162,7 +162,7 @@ public class PcepRsvpUserErrorSpec implements PcepRsvpErrorSpec {
}
private static LinkedList<PcepValueType> parseErrSpecSubObj(ChannelBuffer cb) throws PcepParseException {
LinkedList<PcepValueType> llRsvpUserSpecSubObj = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llRsvpUserSpecSubObj = new LinkedList<>();
while (0 < cb.readableBytes()) {
PcepValueType tlv = null;
short hType = cb.readShort();
......
......@@ -187,7 +187,7 @@ public class RemoteTENodeDescriptorsTlv implements PcepValueType {
public static PcepValueType read(ChannelBuffer c , short length) throws PcepParseException {
// Node Descriptor Sub-TLVs (variable)
LinkedList<PcepValueType> llRemoteTENodeDescriptorSubTLVs = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llRemoteTENodeDescriptorSubTLVs = new LinkedList<>();
ChannelBuffer tempCb = c.readBytes(length);
......
......@@ -186,7 +186,7 @@ public class TELinkAttributesTlv implements PcepValueType {
public static PcepValueType read(ChannelBuffer c, short hLength) throws PcepParseException {
// Node Descriptor Sub-TLVs (variable)
LinkedList<PcepValueType> llLinkAttributesSubTLVs = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llLinkAttributesSubTLVs = new LinkedList<>();
ChannelBuffer tempCb = c.readBytes(hLength);
......
......@@ -183,7 +183,7 @@ public class TELinkDescriptorsTlv implements PcepValueType {
public static PcepValueType read(ChannelBuffer c, short length) throws PcepParseException {
// Node Descriptor Sub-TLVs (variable)
LinkedList<PcepValueType> llLinkDescriptorsSubTLVs = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llLinkDescriptorsSubTLVs = new LinkedList<>();
ChannelBuffer tempCb = c.readBytes(length);
......
......@@ -183,7 +183,7 @@ public class TENodeAttributesTlv implements PcepValueType {
public static PcepValueType read(ChannelBuffer c, short hLength) throws PcepParseException {
// Node Descriptor Sub-TLVs (variable)
LinkedList<PcepValueType> llNodeAttributesSubTLVs = new LinkedList<PcepValueType>();
LinkedList<PcepValueType> llNodeAttributesSubTLVs = new LinkedList<>();
ChannelBuffer tempCb = c.readBytes(hLength);
......
......@@ -36,11 +36,11 @@ public class RemoteTENodeDescriptorsTlvTest {
private final AutonomousSystemTlv autonomousSystemTlv2 = new AutonomousSystemTlv(20);
private final BGPLSidentifierTlv bGPLSidentifierTlv2 = new BGPLSidentifierTlv(30);
private final LinkedList<PcepValueType> llRemoteTENodeDescriptorSubTLV1 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llRemoteTENodeDescriptorSubTLV1 = new LinkedList<>();
private final boolean a = llRemoteTENodeDescriptorSubTLV1.add(autonomousSystemTlv1);
private final boolean b = llRemoteTENodeDescriptorSubTLV1.add(bGPLSidentifierTlv1);
private final LinkedList<PcepValueType> llRemoteTENodeDescriptorSubTLV2 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llRemoteTENodeDescriptorSubTLV2 = new LinkedList<>();
private final boolean c = llRemoteTENodeDescriptorSubTLV2.add(autonomousSystemTlv2);
private final boolean d = llRemoteTENodeDescriptorSubTLV2.add(bGPLSidentifierTlv2);
......
......@@ -38,11 +38,11 @@ public class TELinkAttributesTlvTest {
private final MaximumReservableLinkBandwidthTlv maximumReservableLinkBandwidthTlv2 =
new MaximumReservableLinkBandwidthTlv(30);
private final LinkedList<PcepValueType> llLinkAttributesSubTLV1 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llLinkAttributesSubTLV1 = new LinkedList<>();
private final boolean a = llLinkAttributesSubTLV1.add(administrativeGroupTlv1);
private final boolean b = llLinkAttributesSubTLV1.add(maximumReservableLinkBandwidthTlv1);
private final LinkedList<PcepValueType> llLinkAttributesSubTLV2 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llLinkAttributesSubTLV2 = new LinkedList<>();
private final boolean c = llLinkAttributesSubTLV2.add(administrativeGroupTlv2);
private final boolean d = llLinkAttributesSubTLV2.add(maximumReservableLinkBandwidthTlv2);
......
......@@ -37,11 +37,11 @@ public class TELinkDescriptorsTlvTest {
LinkLocalRemoteIdentifiersTlv(20, 20);
private final IPv4InterfaceAddressTlv iPv4InterfaceAddressTlv2 = new IPv4InterfaceAddressTlv(0x02020202);
private final LinkedList<PcepValueType> llLinkDescriptorsSubTLVs1 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llLinkDescriptorsSubTLVs1 = new LinkedList<>();
private final boolean a = llLinkDescriptorsSubTLVs1.add(linkLocalRemoteIdentifiersTlv1);
private final boolean b = llLinkDescriptorsSubTLVs1.add(iPv4InterfaceAddressTlv1);
private final LinkedList<PcepValueType> llLinkDescriptorsSubTLVs2 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llLinkDescriptorsSubTLVs2 = new LinkedList<>();
private final boolean c = llLinkDescriptorsSubTLVs2.add(linkLocalRemoteIdentifiersTlv2);
private final boolean d = llLinkDescriptorsSubTLVs2.add(iPv4InterfaceAddressTlv2);
......
......@@ -38,11 +38,11 @@ public class TENodeAttributesTlvTest {
private final IPv4TERouterIdOfLocalNodeTlv iPv4TERouterIdOfLocalNodeTlv2 = new
IPv4TERouterIdOfLocalNodeTlv(0x02020202);
private final LinkedList<PcepValueType> llNodeAttributesSubTLV1 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llNodeAttributesSubTLV1 = new LinkedList<>();
private final boolean a = llNodeAttributesSubTLV1.add(nodeFlagBitsTlv1);
private final boolean b = llNodeAttributesSubTLV1.add(iPv4TERouterIdOfLocalNodeTlv1);
private final LinkedList<PcepValueType> llNodeAttributesSubTLV2 = new LinkedList<PcepValueType>();
private final LinkedList<PcepValueType> llNodeAttributesSubTLV2 = new LinkedList<>();
private final boolean c = llNodeAttributesSubTLV2.add(nodeFlagBitsTlv2);
private final boolean d = llNodeAttributesSubTLV2.add(iPv4TERouterIdOfLocalNodeTlv2);
......