diff options
Diffstat (limited to 'libjava/classpath/examples/gnu')
5 files changed, 7 insertions, 7 deletions
diff --git a/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DemoServant.java b/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DemoServant.java index c07b77b1728..9af20d227ab 100644 --- a/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DemoServant.java +++ b/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DemoServant.java @@ -145,7 +145,7 @@ public class DemoServant { System.out.println("SERVER: ***** Transferring tree"); - StringBuffer b = new StringBuffer(); + StringBuilder b = new StringBuilder(); // This both creates the tree string representation // and changes the TreeNode names. @@ -214,7 +214,7 @@ public class DemoServant * @param b the buffer to collect the string representation. * @param n the rott tree TreeNode. */ - private void getImage(StringBuffer b, TreeNode n) + private void getImage(StringBuilder b, TreeNode n) { b.append(n.name); n.name = n.name + "++"; diff --git a/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DirectTest.java b/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DirectTest.java index 732b00cfb30..843530de55b 100644 --- a/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DirectTest.java +++ b/libjava/classpath/examples/gnu/classpath/examples/CORBA/SimpleCommunication/communication/DirectTest.java @@ -269,7 +269,7 @@ public class DirectTest object.passTree(nh); // Convert the returned tree to some strig representation. - StringBuffer img = new StringBuffer(); + StringBuilder img = new StringBuilder(); getImage(img, nh.value); System.out.println("Returned tree: " + img.toString()); @@ -314,7 +314,7 @@ public class DirectTest * @param b the string buffer to accumulate the representation. * @param n the tree (root TreeNode). */ - private void getImage(StringBuffer b, TreeNode n) + private void getImage(StringBuilder b, TreeNode n) { b.append(n.name); b.append(": ("); diff --git a/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/IorReader.java b/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/IorReader.java index a976def74f3..73a8eecab93 100644 --- a/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/IorReader.java +++ b/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/IorReader.java @@ -79,7 +79,7 @@ public class IorReader { InputStreamReader r = new InputStreamReader(u.openStream()); - StringBuffer b = new StringBuffer(); + StringBuilder b = new StringBuilder(); int c; while ((c = r.read()) > 0) diff --git a/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/X5Server.java b/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/X5Server.java index 2ef9241c520..77178346043 100644 --- a/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/X5Server.java +++ b/libjava/classpath/examples/gnu/classpath/examples/CORBA/swing/x5/X5Server.java @@ -147,7 +147,7 @@ public class X5Server int length = GameManagerImpl.ior.length(); - StringBuffer b = new StringBuffer(); + StringBuilder b = new StringBuilder(); b.append("HTTP/1.0 200 OK\r\n"); b.append("Content-Length: " + length + "\r\n"); b.append("Connection: close\r\n"); diff --git a/libjava/classpath/examples/gnu/classpath/examples/html/Demo.java b/libjava/classpath/examples/gnu/classpath/examples/html/Demo.java index 34dd73b32cb..3d77b127a04 100644 --- a/libjava/classpath/examples/gnu/classpath/examples/html/Demo.java +++ b/libjava/classpath/examples/gnu/classpath/examples/html/Demo.java @@ -94,7 +94,7 @@ public class Demo if (node == null) return; - StringBuffer tab = new StringBuffer(); + StringBuilder tab = new StringBuilder(); stream.println(); for (int i = 0; i < ident; i++) { |

