diff --git a/src/test/java/hudson/plugins/ec2/SlaveTemplateUnitTest.java b/src/test/java/hudson/plugins/ec2/SlaveTemplateUnitTest.java index f31601e63..fb21249c9 100644 --- a/src/test/java/hudson/plugins/ec2/SlaveTemplateUnitTest.java +++ b/src/test/java/hudson/plugins/ec2/SlaveTemplateUnitTest.java @@ -105,7 +105,7 @@ protected Object readResolve() { Method updateRemoteTags = SlaveTemplate.class.getDeclaredMethod( "updateRemoteTags", AmazonEC2.class, Collection.class, String.class, String[].class); updateRemoteTags.setAccessible(true); - final Object params[] = {ec2, awsTags, "InvalidInstanceRequestID.NotFound", new String[] {instanceId}}; + final Object[] params = {ec2, awsTags, "InvalidInstanceRequestID.NotFound", new String[] {instanceId}}; updateRemoteTags.invoke(orig, params); assertEquals(0, handler.getRecords().size()); } @@ -176,7 +176,7 @@ protected Object readResolve() { Method updateRemoteTags = SlaveTemplate.class.getDeclaredMethod( "updateRemoteTags", AmazonEC2.class, Collection.class, String.class, String[].class); updateRemoteTags.setAccessible(true); - final Object params[] = {ec2, awsTags, "InvalidSpotInstanceRequestID.NotFound", new String[] {instanceId}}; + final Object[] params = {ec2, awsTags, "InvalidSpotInstanceRequestID.NotFound", new String[] {instanceId}}; updateRemoteTags.invoke(orig, params); assertEquals(5, handler.getRecords().size());