Skip to content

Commit

Permalink
Avoid deprecated new Integer() form
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 2, 2024
1 parent 5c1c0b0 commit caa0ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/com/headius/invokebinder/BinderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public void testCollect() throws Throwable {
.invoke(Subjects.StringIntegersStringHandle);

assertEquals(methodType(String.class, String.class, Integer.class, Integer.class, Integer.class, String.class), handle2.type());
assertEquals("[foo, [1, 2, 3], bar]", (String)handle2.invokeExact("foo", new Integer(1), new Integer(2), new Integer(3), "bar"));
assertEquals("[foo, [1, 2, 3], bar]", (String)handle2.invokeExact("foo", Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3), "bar"));
}

public static String[] newStringArray(String s1, String s2) {
Expand Down

0 comments on commit caa0ea9

Please sign in to comment.