Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalDevice uses deprecated new Integer(int value) #76

Open
pquiring opened this issue Nov 16, 2022 · 0 comments
Open

LocalDevice uses deprecated new Integer(int value) #76

pquiring opened this issue Nov 16, 2022 · 0 comments

Comments

@pquiring
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant