@@ -333,17 +333,17 @@ public void testNegativeCase(Class<?>[] interfaces, Class<?> defc, String name)
333
333
@ DataProvider (name = "illegalArguments" )
334
334
private Object [][] illegalArguments () {
335
335
return new Object [][] {
336
- new Object [] {},
337
- new Object [] { 100 },
338
- new Object [] { 100 , "foo" , 100 },
339
- new Object [] { 100L , "foo" },
340
- new Object [] { "foo" , 100 },
341
- new Object [] { null , "foo" }
336
+ new Object [] { new Object [ 0 ] },
337
+ new Object [] { new Object [] { 100 } },
338
+ new Object [] { new Object [] { 100 , "foo" , 100 } },
339
+ new Object [] { new Object [] { 100L , "foo" } },
340
+ new Object [] { new Object [] { "foo" , 100 } },
341
+ new Object [] { new Object [] { null , "foo" } }
342
342
};
343
343
}
344
344
345
345
@ Test (dataProvider = "illegalArguments" , expectedExceptions = {IllegalArgumentException .class })
346
- public void testIllegalArgument (Object ... args ) throws Throwable {
346
+ public void testIllegalArgument (Object [] args ) throws Throwable {
347
347
ClassLoader loader = DefaultMethods .class .getClassLoader ();
348
348
I4 proxy = (I4 )Proxy .newProxyInstance (loader , new Class <?>[]{I4 .class }, HANDLER );
349
349
Method m = I4 .class .getMethod ("mix" , int .class , String .class );
1 commit comments
openjdk-notifier[bot] commentedon May 11, 2021
Review
Issues