summaryrefslogtreecommitdiff
path: root/libjava/classpath/gnu/CORBA/BigDecimalHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/gnu/CORBA/BigDecimalHelper.java')
-rw-r--r--libjava/classpath/gnu/CORBA/BigDecimalHelper.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/libjava/classpath/gnu/CORBA/BigDecimalHelper.java b/libjava/classpath/gnu/CORBA/BigDecimalHelper.java
index 119db045f0f..33b74bb7780 100644
--- a/libjava/classpath/gnu/CORBA/BigDecimalHelper.java
+++ b/libjava/classpath/gnu/CORBA/BigDecimalHelper.java
@@ -38,6 +38,8 @@ exception statement from your version. */
package gnu.CORBA;
+import gnu.java.lang.CPStringBuilder;
+
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -135,7 +137,7 @@ public class BigDecimalHelper
public static void write(java.io.OutputStream out, BigDecimal x)
throws IOException, BadKind
{
- StringBuffer v = new StringBuffer(x.unscaledValue().toString());
+ CPStringBuilder v = new CPStringBuilder(x.unscaledValue().toString());
boolean negative = v.charAt(0) == '-';
@@ -165,7 +167,7 @@ public class BigDecimalHelper
*/
private static BigDecimal createFixed(int scale, byte[] d)
{
- StringBuffer s = new StringBuffer(2 * d.length);
+ CPStringBuilder s = new CPStringBuilder(2 * d.length);
int last = d.length - 1;