e = se;
} catch (IllegalAccessException iae) {
e = iae;
- iae.printStackTrace();
} catch (InvocationTargetException ite) {
throw ite.getTargetException();
}
package org.opendaylight.lispflowmapping.type.lisp;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
}
public MapRegister setMapRegisterBytes(byte[] mapRegisterBytes) {
- this.mapRegisterBytes = mapRegisterBytes;
+ this.mapRegisterBytes = Arrays.copyOf(mapRegisterBytes, mapRegisterBytes.length);
return this;
}
package org.opendaylight.lispflowmapping.type.lisp.address;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
}
public void setMac(byte[] mac) {
- this.mac = mac;
+ this.mac = Arrays.copyOf(mac, mac.length);
}
public int getAsNum() {
package org.opendaylight.lispflowmapping.implementation.inventory;
+import java.util.Arrays;
+
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
public XtrIdNodeProperty(byte[] xtrId) {
super(name);
- this.xtrId = xtrId;
+ this.xtrId = Arrays.copyOf(xtrId, xtrId.length);
}
@Override
}
} catch (SocketException e) {
logger.error("couldn't start socket {}", e.getMessage());
- e.printStackTrace();
}
}