summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/JavaEmitter.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-03-31 19:05:36 +0200
committerMichael Bien <[email protected]>2010-03-31 19:05:36 +0200
commitc5068e42758aeecbd0a3fbf4c2e2b755661e950e (patch)
tree5aa658bb3998103499d6bcfdecd2a5b13459a3f0 /src/java/com/sun/gluegen/JavaEmitter.java
parent5cef76666685a4dc94324c2463a4dba53950071c (diff)
refactoring and code cleanup in gluegen.opengl and gluegen.procaddress package.
Diffstat (limited to 'src/java/com/sun/gluegen/JavaEmitter.java')
-rw-r--r--src/java/com/sun/gluegen/JavaEmitter.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/com/sun/gluegen/JavaEmitter.java b/src/java/com/sun/gluegen/JavaEmitter.java
index f84c19a..0703f76 100644
--- a/src/java/com/sun/gluegen/JavaEmitter.java
+++ b/src/java/com/sun/gluegen/JavaEmitter.java
@@ -647,7 +647,7 @@ public class JavaEmitter implements GlueEmitter {
* Generate all appropriate Java bindings for the specified C function
* symbols.
*/
- protected List<FunctionEmitter> generateMethodBindingEmitters(HashSet<MethodBinding> methodBindingSet, FunctionSymbol sym) throws Exception {
+ protected List<? extends FunctionEmitter> generateMethodBindingEmitters(Set<MethodBinding> methodBindingSet, FunctionSymbol sym) throws Exception {
ArrayList<FunctionEmitter> allEmitters = new ArrayList<FunctionEmitter>();
@@ -1163,9 +1163,11 @@ public class JavaEmitter implements GlueEmitter {
}
public void endStructs() throws Exception {}
- public static int addStrings2Buffer(StringBuffer buf, String sep, String first, Collection<String> col) {
+ public static int addStrings2Buffer(StringBuilder buf, String sep, String first, Collection<String> col) {
int num = 0;
- if(null==buf) buf = new StringBuffer();
+ if(null==buf) {
+ buf = new StringBuilder();
+ }
Iterator<String> iter = col.iterator();
if(null!=first) {