diff --git a/apis/ec2/src/test/java/org/jclouds/ec2/compute/strategy/CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest.java b/apis/ec2/src/test/java/org/jclouds/ec2/compute/strategy/CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest.java index 9c9a405b4e..2babb8d338 100644 --- a/apis/ec2/src/test/java/org/jclouds/ec2/compute/strategy/CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest.java +++ b/apis/ec2/src/test/java/org/jclouds/ec2/compute/strategy/CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest.java @@ -416,7 +416,7 @@ public class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest { String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupIds = ImmutableSet. of(); - int[] ports = new int[] {}; + int[] ports = {}; boolean shouldAuthorizeSelf = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup); @@ -450,7 +450,7 @@ public class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest { String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupIds = ImmutableSet. of(); - int[] ports = new int[] { 22, 80 }; + int[] ports = { 22, 80 }; boolean shouldAuthorizeSelf = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup); @@ -484,7 +484,7 @@ public class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest { String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupIds = ImmutableSet. of(); - int[] ports = new int[] {}; + int[] ports = {}; boolean shouldAuthorizeSelf = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup); @@ -517,7 +517,7 @@ public class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptionsTest { String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupIds = ImmutableSet. of("group1", "group2"); - int[] ports = new int[] {}; + int[] ports = {}; boolean shouldAuthorizeSelf = true; boolean groupExisted = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup, "group1", "group2"); diff --git a/apis/filesystem/src/test/java/org/jclouds/filesystem/FilesystemAsyncBlobStoreTest.java b/apis/filesystem/src/test/java/org/jclouds/filesystem/FilesystemAsyncBlobStoreTest.java index ed7e4c310e..7ec66f3693 100644 --- a/apis/filesystem/src/test/java/org/jclouds/filesystem/FilesystemAsyncBlobStoreTest.java +++ b/apis/filesystem/src/test/java/org/jclouds/filesystem/FilesystemAsyncBlobStoreTest.java @@ -139,7 +139,7 @@ public class FilesystemAsyncBlobStoreTest { assertTrue(containersRetrieved.isEmpty(), "List operation returns a not empty set of container"); // Testing list with some containers - String[] containerNames = new String[]{"34343", "aaaa", "bbbbb"}; + String[] containerNames = {"34343", "aaaa", "bbbbb"}; containersCreated = Sets.newHashSet(); for (String containerName : containerNames) { blobStore.createContainerInLocation(null, containerName); diff --git a/apis/filesystem/src/test/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImplTest.java b/apis/filesystem/src/test/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImplTest.java index 80fe343ff0..4b2490e28f 100644 --- a/apis/filesystem/src/test/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImplTest.java +++ b/apis/filesystem/src/test/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImplTest.java @@ -434,7 +434,7 @@ public class FilesystemStorageStrategyImplTest { } public void testBlobExists() throws IOException { - String[] sourceBlobKeys = new String[] { TestUtils.createRandomBlobKey("blobExists-", ".jpg"), + String[] sourceBlobKeys = { TestUtils.createRandomBlobKey("blobExists-", ".jpg"), TestUtils.createRandomBlobKey("blobExists-", ".jpg"), TestUtils.createRandomBlobKey("afasd" + FS + "asdma" + FS + "blobExists-", ".jpg") }; diff --git a/apis/swift/src/test/java/org/jclouds/openstack/swift/CommonSwiftClientLiveTest.java b/apis/swift/src/test/java/org/jclouds/openstack/swift/CommonSwiftClientLiveTest.java index 3ace3a81ed..0e1e0f5c10 100644 --- a/apis/swift/src/test/java/org/jclouds/openstack/swift/CommonSwiftClientLiveTest.java +++ b/apis/swift/src/test/java/org/jclouds/openstack/swift/CommonSwiftClientLiveTest.java @@ -79,7 +79,7 @@ public abstract class CommonSwiftClientLiveTest ext assertTrue(initialContainerCount >= 0); // Create test containers - String[] containerNames = new String[] { containerPrefix + ".testListOwnedContainers1", + String[] containerNames = { containerPrefix + ".testListOwnedContainers1", containerPrefix + ".testListOwnedContainers2" }; assertTrue(getApi().createContainer(containerNames[0])); assertTrue(getApi().createContainer(containerNames[1])); diff --git a/apis/vcloud/src/test/java/org/jclouds/vcloud/utils/TestUtils.java b/apis/vcloud/src/test/java/org/jclouds/vcloud/utils/TestUtils.java index 2b82daae36..9a3026631e 100644 --- a/apis/vcloud/src/test/java/org/jclouds/vcloud/utils/TestUtils.java +++ b/apis/vcloud/src/test/java/org/jclouds/vcloud/utils/TestUtils.java @@ -24,7 +24,7 @@ package org.jclouds.vcloud.utils; */ public class TestUtils { public static final Object[][] NO_INVOCATIONS = new Object[0][0]; - public static final Object[][] SINGLE_NO_ARG_INVOCATION = new Object[][] { new Object[0] }; + public static final Object[][] SINGLE_NO_ARG_INVOCATION = { new Object[0] }; public static boolean isWindowsOs() { return System.getProperty("os.name", "").toLowerCase().contains("windows"); diff --git a/blobstore/src/test/java/org/jclouds/blobstore/TransientBlobRequestSignerTest.java b/blobstore/src/test/java/org/jclouds/blobstore/TransientBlobRequestSignerTest.java index 22d5836482..9b54ac2b62 100644 --- a/blobstore/src/test/java/org/jclouds/blobstore/TransientBlobRequestSignerTest.java +++ b/blobstore/src/test/java/org/jclouds/blobstore/TransientBlobRequestSignerTest.java @@ -89,7 +89,7 @@ public class TransientBlobRequestSignerTest extends BaseAsyncClientTest groupNames = ImmutableSet. of(); - int[] ports = new int[] {}; + int[] ports = {}; boolean shouldAuthorizeSelf = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup); @@ -690,7 +690,7 @@ public class CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptionsT String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupNames = ImmutableSet. of(); - int[] ports = new int[] { 22, 80 }; + int[] ports = { 22, 80 }; boolean shouldAuthorizeSelf = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup); @@ -724,7 +724,7 @@ public class CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptionsT String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupNames = ImmutableSet. of(); - int[] ports = new int[] {}; + int[] ports = {}; boolean shouldAuthorizeSelf = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup); @@ -758,7 +758,7 @@ public class CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptionsT String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupNames = ImmutableSet. of("group1", "group2"); - int[] ports = new int[] {}; + int[] ports = {}; boolean shouldAuthorizeSelf = true; boolean groupExisted = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup, "group1", "group2"); @@ -794,7 +794,7 @@ public class CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptionsT String group = "group"; String generatedMarkerGroup = "jclouds#group"; Set groupNames = ImmutableSet. of(); - int[] ports = new int[] {}; + int[] ports = {}; boolean shouldAuthorizeSelf = true; boolean groupExisted = true; Set returnVal = ImmutableSet. of(generatedMarkerGroup);