lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

lcm-java: use factory method on boxed types #408

Closed ihilt closed 1 year ago

ihilt commented 1 year ago

Doesn't deal with the JApplet deprecation warning. Example of warnings it resolves:

src/info/monitorenter/gui/chart/events/Trace2DActionSetStroke.java:98: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal
            new Boolean(true), new Boolean(false));
nosracd commented 1 year ago

For posterity, compiling with the flags -Xlint:deprecation -Xlint:unchecked -Xmaxwarns 1000 results in 209 warnings on master but 36 warnings on this branch,