diff options
author | BJ Hargrave | 2017-01-13 18:12:35 +0000 |
---|---|---|
committer | Thomas Watson | 2017-01-18 17:05:57 +0000 |
commit | 759c393edf3f0e79a184ce52c1bd5477200087b3 (patch) | |
tree | 5e272cf23c272a56e2efdc90182b0d77dde94fa3 | |
parent | aeb74d9f60b14d98eb9eb3762b1a48a6c8d6bb75 (diff) | |
download | rt.equinox.framework-759c393edf3f0e79a184ce52c1bd5477200087b3.tar.gz rt.equinox.framework-759c393edf3f0e79a184ce52c1bd5477200087b3.tar.xz rt.equinox.framework-759c393edf3f0e79a184ce52c1bd5477200087b3.zip |
Bug 510641 - service registry: Use StringBuilder instead of StringBuffer
Change-Id: I222c6a298d1ad5fb3aa19c3f122f5c4d8dd97636
Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
2 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceProperties.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceProperties.java index c5cbd105c..bc80b1bfd 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceProperties.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceProperties.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2012 IBM Corporation and others. + * Copyright (c) 2003, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -149,7 +149,7 @@ class ServiceProperties extends Headers<String, Object> { int size = keys.length; - StringBuffer sb = new StringBuffer(20 * size); + StringBuilder sb = new StringBuilder(20 * size); sb.append('{'); diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistrationImpl.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistrationImpl.java index f39463924..f419cb33d 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistrationImpl.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistrationImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2016 IBM Corporation and others. + * Copyright (c) 2003, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -662,7 +662,7 @@ public class ServiceRegistrationImpl<S> implements ServiceRegistration<S>, Compa */ public String toString() { int size = clazzes.length; - StringBuffer sb = new StringBuffer(50 * size); + StringBuilder sb = new StringBuilder(50 * size); sb.append('{'); |