summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-14 20:06:00 +0200
committerSven Gothel <[email protected]>2013-07-14 20:06:00 +0200
commit461f57b12b95782c53d0380d5d796615ad2e4581 (patch)
treef096561c08634e0ea7f1c5063d23e102b2124a87 /src
parent645e29457c3a51cb262a61f2fe8e73ad9e606230 (diff)
StringBuffer -> StringBuilder
Diffstat (limited to 'src')
-rw-r--r--src/java/com/jogamp/gluegen/cgram/GnuCEmitter.g4
-rw-r--r--src/java/com/jogamp/gluegen/cgram/HeaderParser.g2
-rw-r--r--src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java2
3 files changed, 3 insertions, 5 deletions
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: ");
diff --git a/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java b/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java
index 51e3166..7bd9241 100644
--- a/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java
+++ b/src/java/com/jogamp/gluegen/procaddress/ProcAddressConfiguration.java
@@ -43,8 +43,6 @@ import java.io.*;
import java.text.*;
import java.util.*;
-import com.jogamp.gluegen.*;
-
public class ProcAddressConfiguration extends JavaConfiguration {
private boolean emitProcAddressTable = false;