Java 9 deprecation warning fixes for test-suite and examples

This commit is contained in:
William S Fulton 2019-02-20 23:44:01 -08:00
commit e6035d625a
6 changed files with 20 additions and 12 deletions

View file

@ -76,7 +76,7 @@ public class runme {
System.out.println( " Trying to set 'status'" );
try {
Method m = example.class.getDeclaredMethod("setStatus", new Class[] {Integer.class});
m.invoke(example.class, new Object[] {new Integer(0)} );
m.invoke(example.class, new Object[] {Integer.valueOf(0)} );
System.out.println( "Hey, what's going on?!?! This shouldn't work" );
}
catch (NoSuchMethodException e) {