jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject [jclouds] Reset StringBuilder instead of creating new ones (#466)
Date Wed, 06 Aug 2014 06:22:32 GMT
This avoids unneeded garbage, especially during XML parsing.  Replaced
with:

find -name \*.java | xargs sed -i &#39;s/\(^ *[^ ]*\) = new StringBuilder();$/\1.setLength(0);/&#39;
You can merge this Pull Request by running:

  git pull https://github.com/andrewgaul/jclouds stringbuilder-setlength

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds/pull/466

-- Commit Summary --

  * Reset StringBuilder instead of creating new ones

-- File Changes --

    M apis/atmos/src/main/java/org/jclouds/atmos/xml/ErrorHandler.java (2)
    M apis/atmos/src/main/java/org/jclouds/atmos/xml/ListDirectoryResponseHandler.java (2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/AlarmHistoryItemHandler.java
(2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/DatapointHandler.java (2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/DimensionHandler.java (2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/GetMetricStatisticsResponseHandlerV2.java
(2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/ListAlarmHistoryResponseHandler.java
(2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/ListAlarmsForMetricResponseHandler.java
(2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/ListAlarmsResponseHandler.java
(2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/ListMetricsResponseHandler.java
(2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/MetricAlarmHandler.java (2)
    M apis/cloudwatch/src/main/java/org/jclouds/cloudwatch/xml/MetricHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/AllocateAddressResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/AttachmentHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/BaseReservationHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/BlockDeviceMappingHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/BooleanValueHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/BundleTaskHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/CreateVolumeResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeAddressesResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeAvailabilityZonesResponseHandler.java
(2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeImagesResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeKeyPairsResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeRegionsResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeSecurityGroupsResponseHandler.java
(2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeSubnetsResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/DescribeTagsResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/GetConsoleOutputResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/GetPasswordDataResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/ImageIdHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/InstanceInitiatedShutdownBehaviorHandler.java
(2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/InstanceStateChangeHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/InstanceTypeHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/IpPermissionHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/KeyPairResponseHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/PermissionHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/SecurityGroupHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/SnapshotHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/StringValueHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/SubnetHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/TagHandler.java (2)
    M apis/ec2/src/main/java/org/jclouds/ec2/xml/TagSetHandler.java (2)
    M apis/openstack-nova-ec2/src/main/java/org/jclouds/openstack/nova/ec2/xml/NovaCreateVolumeResponseHandler.java
(2)
    M apis/route53/src/main/java/org/jclouds/route53/xml/ChangeHandler.java (2)
    M apis/route53/src/main/java/org/jclouds/route53/xml/GetHostedZoneResponseHandler.java
(2)
    M apis/route53/src/main/java/org/jclouds/route53/xml/HostedZoneHandler.java (2)
    M apis/route53/src/main/java/org/jclouds/route53/xml/InvalidChangeBatchHandler.java (2)
    M apis/route53/src/main/java/org/jclouds/route53/xml/ListHostedZonesResponseHandler.java
(2)
    M apis/route53/src/main/java/org/jclouds/route53/xml/ListResourceRecordSetsResponseHandler.java
(2)
    M apis/route53/src/main/java/org/jclouds/route53/xml/ResourceRecordSetHandler.java (2)
    M apis/s3/src/main/java/org/jclouds/s3/xml/AccessControlListHandler.java (2)
    M apis/s3/src/main/java/org/jclouds/s3/xml/BucketLoggingHandler.java (2)
    M apis/s3/src/main/java/org/jclouds/s3/xml/CopyObjectHandler.java (2)
    M apis/s3/src/main/java/org/jclouds/s3/xml/ListAllMyBucketsHandler.java (2)
    M apis/s3/src/main/java/org/jclouds/s3/xml/ListBucketHandler.java (2)
    M apis/sqs/src/main/java/org/jclouds/sqs/xml/AttributesHandler.java (2)
    M apis/sqs/src/main/java/org/jclouds/sqs/xml/BatchErrorHandler.java (2)
    M apis/sqs/src/main/java/org/jclouds/sqs/xml/MessageHandler.java (2)
    M apis/sqs/src/main/java/org/jclouds/sqs/xml/SendMessageBatchResultEntryHandler.java (2)
    M apis/sqs/src/main/java/org/jclouds/sqs/xml/TextFromSingleElementHandler.java (2)
    M apis/sts/src/main/java/org/jclouds/aws/xml/ErrorHandler.java (2)
    M apis/sts/src/main/java/org/jclouds/aws/xml/SessionCredentialsHandler.java (2)
    M apis/sts/src/main/java/org/jclouds/sts/xml/UserAndSessionCredentialsHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/CatalogHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/CatalogItemHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/GuestCustomizationSectionHandler.java
(4)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/NetworkConnectionHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/NetworkConnectionSectionHandler.java
(2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/OrgHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/OrgNetworkHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/SupportedVersionsHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/VAppHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/VAppTemplateHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/VDCHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/VmHandler.java (2)
    M apis/vcloud/src/main/java/org/jclouds/vcloud/xml/ovf/VCloudOperatingSystemHandler.java
(2)
    M common/azure/src/main/java/org/jclouds/azure/storage/xml/ErrorHandler.java (2)
    M compute/src/main/java/org/jclouds/cim/xml/ResourceAllocationSettingDataHandler.java
(2)
    M compute/src/main/java/org/jclouds/cim/xml/VirtualSystemSettingDataHandler.java (2)
    M compute/src/main/java/org/jclouds/ovf/xml/SectionHandler.java (2)
    M core/src/main/java/org/jclouds/http/UriTemplates.java (2)
    M core/src/test/java/org/jclouds/http/IntegrationTestAsyncClient.java (2)
    M core/src/test/java/org/jclouds/http/IntegrationTestClient.java (2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/AWSEC2DescribeSecurityGroupsResponseHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/AWSEC2IpPermissionHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/AWSEC2SecurityGroupHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/BaseAWSReservationHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/CreateSecurityGroupResponseHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/LaunchSpecificationHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/MonitoringStateHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/PlacementGroupHandler.java (2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/ProductCodesHandler.java (2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/ReservedInstancesOfferingHandler.java
(2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/SpotHandler.java (2)
    M providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/xml/SpotInstanceHandler.java (2)
    M providers/aws-s3/src/main/java/org/jclouds/aws/s3/xml/DeleteResultHandler.java (2)
    M providers/aws-s3/src/main/java/org/jclouds/aws/s3/xml/ErrorEntryHandler.java (2)
    M providers/azureblob/src/main/java/org/jclouds/azureblob/xml/AccountNameEnumerationResultsHandler.java
(2)
    M providers/azureblob/src/main/java/org/jclouds/azureblob/xml/BlobBlocksResultsHandler.java
(2)
    M providers/azureblob/src/main/java/org/jclouds/azureblob/xml/ContainerNameEnumerationResultsHandler.java
(2)
    M providers/ultradns-ws/src/main/java/org/jclouds/ultradns/ws/xml/ElementTextHandler.java
(2)
    M providers/ultradns-ws/src/main/java/org/jclouds/ultradns/ws/xml/ItemListHandler.java
(2)
    M providers/ultradns-ws/src/main/java/org/jclouds/ultradns/ws/xml/TaskHandler.java (2)
    M providers/ultradns-ws/src/main/java/org/jclouds/ultradns/ws/xml/UltraWSExceptionHandler.java
(2)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/466.patch
https://github.com/jclouds/jclouds/pull/466.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/466

Mime
View raw message