From 461f57b12b95782c53d0380d5d796615ad2e4581 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 14 Jul 2013 20:06:00 +0200 Subject: StringBuffer -> StringBuilder --- src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g | 4 ++-- src/java/com/jogamp/gluegen/cgram/HeaderParser.g | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/java/com/jogamp/gluegen/cgram') diff --git a/src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g b/src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g index 78f8d68..38ded36 100644 --- a/src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g +++ b/src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g @@ -215,7 +215,7 @@ void printAddingLineDirectives( TNode t ) { // preserve flags 3 and 4 if present in current file if ( ! sourceFiles.empty() ) { LineObject l = (LineObject) sourceFiles.peek(); - StringBuffer tFlags = new StringBuffer(""); + StringBuilder tFlags = new StringBuilder(""); if (l.getSystemHeader()) { tFlags.append(" 3"); } @@ -249,7 +249,7 @@ void printAddingLineDirectives( TNode t ) { } // put in the return flag, plus others as needed - StringBuffer tFlags = new StringBuffer(" 2"); + StringBuilder tFlags = new StringBuilder(" 2"); if (l.getSystemHeader()) { tFlags.append(" 3"); } diff --git a/src/java/com/jogamp/gluegen/cgram/HeaderParser.g b/src/java/com/jogamp/gluegen/cgram/HeaderParser.g index 33ee06a..0b4d5ec 100644 --- a/src/java/com/jogamp/gluegen/cgram/HeaderParser.g +++ b/src/java/com/jogamp/gluegen/cgram/HeaderParser.g @@ -208,7 +208,7 @@ options { } private String getTypeString(Type t) { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append("["); sb.append(t); sb.append(", size: "); -- cgit v1.2.3