diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/AdminResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/AdminResources.java index 5406ab4db1..bb80ce68df 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/AdminResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/AdminResources.java @@ -50,7 +50,7 @@ public class AdminResources { } public static String rolePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/roles/1/action/privileges", "privileges")); buffer.append("false"); @@ -60,7 +60,7 @@ public class AdminResources { } public static String rolePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/roles/1/action/privileges", "privileges")); buffer.append(link("/admin/roles/1", "edit")); @@ -92,7 +92,7 @@ public class AdminResources { } public static String datacenterLimitsPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("0"); @@ -113,7 +113,7 @@ public class AdminResources { } public static String datacenterLimitsPutPayload(final EnterpriseDto enterprise) { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/" + enterprise.getId() + "/limits/1", "edit")); buffer.append("0"); @@ -136,7 +136,7 @@ public class AdminResources { } public static String userPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/roles/1", "role")); buffer.append("true"); @@ -168,7 +168,7 @@ public class AdminResources { } public static String userPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/roles/1", "role")); buffer.append(link("/admin/enterprises/1/users/1", "edit")); diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/CloudResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/CloudResources.java index 6038649620..bf975609e7 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/CloudResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/CloudResources.java @@ -149,7 +149,7 @@ public class CloudResources { } public static String virtualMachineStatePayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("ON"); buffer.append(""); @@ -223,7 +223,7 @@ public class CloudResources { } public static String virtualDatacenterPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("0"); @@ -245,7 +245,7 @@ public class CloudResources { } public static String virtualAppliancePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("0"); @@ -256,7 +256,7 @@ public class CloudResources { } public static String virtualMachinePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("0"); @@ -271,7 +271,7 @@ public class CloudResources { } public static String virtualDatacenterPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1", "datacenter")); buffer.append(link("/cloud/virtualdatacenters/1/disks", "disks")); @@ -307,7 +307,7 @@ public class CloudResources { } public static String virtualDatacenterRefPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1", "virtualdatacenter")); buffer.append(""); @@ -315,7 +315,7 @@ public class CloudResources { } public static String virtualAppliancePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1", "virtualdatacenter")); buffer.append(link("/cloud/virtualdatacenters/1/virtualappliances/1/action/deploy", "deploy")); @@ -334,7 +334,7 @@ public class CloudResources { } public static String virtualMachinePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/action/deploy", "deploy")); buffer.append(link("/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/storage/disks", "disks")); @@ -368,7 +368,7 @@ public class CloudResources { } public static String volumePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1/tiers/1", "tier")); buffer.append("Volume"); @@ -378,7 +378,7 @@ public class CloudResources { } public static String volumePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1/volumes/1/action/initiatormappings", "action", "initiator mappings")); @@ -394,7 +394,7 @@ public class CloudResources { } public static String cloudTierPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1/tiers/1", "edit")); buffer.append("true"); @@ -405,7 +405,7 @@ public class CloudResources { } public static String deployPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("false"); buffer.append(""); @@ -413,7 +413,7 @@ public class CloudResources { } public static String undeployPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("false"); buffer.append("true"); @@ -435,7 +435,7 @@ public class CloudResources { } public static String hardDiskPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("1024"); buffer.append(""); @@ -443,7 +443,7 @@ public class CloudResources { } public static String hardDiskPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1", "virtualdatacenter")); buffer.append(link("/cloud/virtualdatacenters/1/disks/1", "edit")); diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/ConfigResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/ConfigResources.java index 9c07bbcca3..02a724ef69 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/ConfigResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/ConfigResources.java @@ -80,7 +80,7 @@ public class ConfigResources { } public static String licensePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/config/licenses/1", "edit")); buffer.append("3bca6d1d-5fe2-42c5-82ea-a5276ea8c71c"); @@ -91,7 +91,7 @@ public class ConfigResources { } public static String licensePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("3bca6d1d-5fe2-42c5-82ea-a5276ea8c71c"); buffer.append("" + readLicense("license/expired") + ""); @@ -100,7 +100,7 @@ public class ConfigResources { } public static String categoryPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("false"); buffer.append("false"); @@ -110,7 +110,7 @@ public class ConfigResources { } public static String categoryPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/config/categories/1", "edit")); buffer.append("false"); @@ -122,7 +122,7 @@ public class ConfigResources { } public static String iconPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/config/icons/1", "edit")); buffer.append("1"); @@ -133,7 +133,7 @@ public class ConfigResources { } public static String iconPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("icon"); buffer.append("http://www.pixeljoint.com/files/icons/mipreview1.gif"); @@ -142,7 +142,7 @@ public class ConfigResources { } public static String propertyPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/config/properties/1", "edit")); buffer.append("Time interval in seconds"); diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/EnterpriseResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/EnterpriseResources.java index c38a9f596b..dad64026e1 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/EnterpriseResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/EnterpriseResources.java @@ -81,7 +81,7 @@ public class EnterpriseResources { } public static String enterprisePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("0"); @@ -104,7 +104,7 @@ public class EnterpriseResources { } public static String enterprisePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/1", "edit")); buffer.append(link("/admin/enterprises/1/limits", "limits")); @@ -139,7 +139,7 @@ public class EnterpriseResources { } public static String enterprisePropertiesPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/1/properties", "edit")); buffer.append(link("/admin/enterprises/1", "enterprise")); @@ -192,7 +192,7 @@ public class EnterpriseResources { } public static String datacenterLimitsPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("0"); @@ -213,7 +213,7 @@ public class EnterpriseResources { } public static String templateListPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("myList"); buffer.append("http://virtualapp-repository.com/vapp1.ovf"); @@ -222,7 +222,7 @@ public class EnterpriseResources { } public static String templateListPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/1/appslib/templateDefinitionLists/1", "edit")); buffer.append(link("/admin/enterprises/1/appslib/templateDefinitionLists/1/actions/repositoryStatus", @@ -235,7 +235,7 @@ public class EnterpriseResources { } public static String datacenterLimitsPutPayload(final EnterpriseDto enterprise) { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/" + enterprise.getId() + "/limits/1", "edit")); buffer.append("0"); @@ -258,7 +258,7 @@ public class EnterpriseResources { } public static String userPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/roles/1", "role")); buffer.append("true"); @@ -290,7 +290,7 @@ public class EnterpriseResources { } public static String userPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/roles/1", "role")); buffer.append(link("/admin/enterprises/1/users/1", "edit")); diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/InfrastructureResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/InfrastructureResources.java index 07d4f1d436..ac8e24720a 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/InfrastructureResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/InfrastructureResources.java @@ -251,7 +251,7 @@ public class InfrastructureResources { } public static String datacenterPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("Honolulu"); buffer.append("DC"); @@ -260,7 +260,7 @@ public class InfrastructureResources { } public static String rackPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("false"); buffer.append("Aloha"); @@ -274,7 +274,7 @@ public class InfrastructureResources { } public static String managedRackPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("false"); buffer.append("Aloha"); @@ -288,7 +288,7 @@ public class InfrastructureResources { } public static String storagePoolPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("false"); @@ -300,7 +300,7 @@ public class InfrastructureResources { } public static String storageDevicePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("10.10.10.10"); buffer.append("99"); @@ -311,7 +311,7 @@ public class InfrastructureResources { } public static String machinePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(""); buffer.append("A hawaian machine"); @@ -326,7 +326,7 @@ public class InfrastructureResources { } public static String remoteServicePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("0"); buffer.append("NODE_COLLECTOR"); @@ -336,7 +336,7 @@ public class InfrastructureResources { } public static String datacenterPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/action/checkmachinestate", "checkmachinestate")); buffer.append(link("/admin/datacenters/1/action/checkmachineipmistate", "checkmachineipmistate")); @@ -361,7 +361,7 @@ public class InfrastructureResources { } public static String storagePoolPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/storage/devices/1", "device")); buffer.append(link("/admin/datacenters/1/storage/devices/1/pools/tururututu", "edit")); @@ -376,7 +376,7 @@ public class InfrastructureResources { } public static String tierPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/storage/tiers/1", "edit")); buffer.append(link("/admin/datacenters/1", "datacenter")); @@ -389,7 +389,7 @@ public class InfrastructureResources { } public static String rackPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1", "datacenter")); buffer.append(link("/admin/datacenters/1/racks/1", "edit")); @@ -407,7 +407,7 @@ public class InfrastructureResources { } public static String managedRackPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1", "datacenter")); buffer.append(link("/admin/datacenters/1/racks/1", "edit")); @@ -434,7 +434,7 @@ public class InfrastructureResources { } public static String storageDevicePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1", "datacenter")); buffer.append(link("/admin/datacenters/1/storage/devices/1", "edit")); @@ -449,7 +449,7 @@ public class InfrastructureResources { } public static String remoteServicePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/remoteservices/nodecollector/action/check", "check")); buffer.append(link("/admin/datacenters/1", "datacenter")); @@ -463,7 +463,7 @@ public class InfrastructureResources { } public static String machinePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/racks/1/machines/1", "edit")); buffer.append(link("/admin/datacenters/1/racks/1", "rack")); diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/NetworkResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/NetworkResources.java index 364645fcb7..8432494252 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/NetworkResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/NetworkResources.java @@ -146,7 +146,7 @@ public class NetworkResources { } public static String vlanNetworkPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("
192.168.1.0
"); buffer.append("true"); @@ -158,7 +158,7 @@ public class NetworkResources { } public static String privateNetworkPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1/privatenetworks/1", "edit")); buffer.append(link("/cloud/virtualdatacenters/1/privatenetworks/1/ips", "ips")); @@ -174,7 +174,7 @@ public class NetworkResources { } public static String publicNetworkPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/network/1", "edit")); buffer.append(link("/admin/datacenters/1/network/1/ips", "ips")); @@ -190,7 +190,7 @@ public class NetworkResources { } public static String externalNetworkPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/network/1", "edit")); buffer.append(link("/admin/enterprises/1", "enterprise")); @@ -207,7 +207,7 @@ public class NetworkResources { } public static String unmanagedNetworkPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/datacenters/1/network/1", "edit")); buffer.append(link("/admin/enterprises/1", "enterprise")); @@ -224,7 +224,7 @@ public class NetworkResources { } public static String privateIpPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1/privatenetworks/1/ips/1", "self", "privateip")); buffer.append("false"); @@ -237,7 +237,7 @@ public class NetworkResources { } public static String linksDtoPayload(final LinksDto dto) { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); for (RESTLink link : dto.getLinks()) { buffer.append(link(link)); diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/PricingResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/PricingResources.java index 636e7f5d15..f69c6a8fc0 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/PricingResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/PricingResources.java @@ -59,7 +59,7 @@ public class PricingResources { } public static String currencyPostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("DUMMY"); buffer.append("3"); @@ -69,7 +69,7 @@ public class PricingResources { } public static String currencyPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/config/currencies/1", "edit")); buffer.append("DUMMY"); @@ -97,7 +97,7 @@ public class PricingResources { } public static String costcodePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("cost code"); buffer.append("description"); @@ -106,7 +106,7 @@ public class PricingResources { } public static String costcodePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/config/costcodes/1", "edit")); buffer.append("description"); @@ -159,7 +159,7 @@ public class PricingResources { } public static String pricingtemplatePostPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("pricing template"); buffer.append("pt_description"); @@ -182,7 +182,7 @@ public class PricingResources { } public static String pricingtemplatePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append("pricing template"); buffer.append("pt_description"); @@ -217,7 +217,7 @@ public class PricingResources { } public static String costcodecurrencyPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(""); buffer.append("300"); @@ -240,7 +240,7 @@ public class PricingResources { } public static String pricingCostCodePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(""); buffer.append(""); @@ -262,7 +262,7 @@ public class PricingResources { } public static String pricingTierPutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(""); buffer.append(""); diff --git a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/TemplateResources.java b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/TemplateResources.java index 304889b5ce..a2645d1790 100644 --- a/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/TemplateResources.java +++ b/labs/abiquo/src/test/java/org/jclouds/abiquo/domain/TemplateResources.java @@ -71,7 +71,7 @@ public class TemplateResources { } public static String virtualMachineTemplatePutPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/1/datacenterrepositories/1/virtualmachinetemplates/1", "edit")); buffer.append(link("/admin/enterprises/1", "enterprise")); @@ -105,7 +105,7 @@ public class TemplateResources { } public static String persistentPayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/cloud/virtualdatacenters/1/tiers/1", "tier")); buffer.append(link("/cloud/virtualdatacenters/1", "virtualdatacenter")); @@ -136,7 +136,7 @@ public class TemplateResources { } public static String conversionPutPlayload() { - StringBuffer buffer = new StringBuffer(); + StringBuilder buffer = new StringBuilder(); buffer.append(""); buffer.append(link("/admin/enterprises/1/datacenterrepositories/1/virtualmachinetemplates/1/conversions/RAW", "edit")); diff --git a/resources/checkstyle.xml b/resources/checkstyle.xml index 408c7640c0..fcb311a4bd 100644 --- a/resources/checkstyle.xml +++ b/resources/checkstyle.xml @@ -56,4 +56,8 @@ + + + + diff --git a/scriptbuilder/src/main/java/org/jclouds/scriptbuilder/statements/chef/ChefSolo.java b/scriptbuilder/src/main/java/org/jclouds/scriptbuilder/statements/chef/ChefSolo.java index 715eb407d0..9027869907 100644 --- a/scriptbuilder/src/main/java/org/jclouds/scriptbuilder/statements/chef/ChefSolo.java +++ b/scriptbuilder/src/main/java/org/jclouds/scriptbuilder/statements/chef/ChefSolo.java @@ -356,7 +356,7 @@ public class ChefSolo implements Statement { @VisibleForTesting void createNodeConfiguration(ImmutableList.Builder statements) { - StringBuffer json = new StringBuffer(); + StringBuilder json = new StringBuilder(); if (jsonAttributes.isPresent()) { // Start the node configuration with the attributes, but remove the // last bracket to append the run list to the json configuration