BACnet4J icon indicating copy to clipboard operation
BACnet4J copied to clipboard

LocalDevice uses deprecated new Integer(int value)

Open pquiring opened this issue 3 years ago • 0 comments
trafficstars

Describe the bug Use of deprecated new Integer() constructor.

To Reproduce Steps to reproduce the behavior:

  1. Compile using Java 9+

Expected behavior No warnings.

Actual Error LocalDevice.java:336: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] idList.remove(new Integer(d.getInstanceNumber()));

https://github.com/MangoAutomation/BACnet4J/blob/master/src/main/java/com/serotonin/bacnet4j/LocalDevice.java#L336

pquiring avatar Nov 16 '22 17:11 pquiring