summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-03-10 13:52:03 +0100
committerSven Gothel <[email protected]>2014-03-10 13:52:03 +0100
commit66a13b80b545e4a4107ef67ec504e4fc15138a30 (patch)
treefeca0dbfa8ce4a02829b1e6850be8b20880c795d /src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
parentac954c8877592203bc928112407e2bf0f25465f3 (diff)
Minor Cleanup after merging fixes for bugs 987, 990, 992 and 994
Diffstat (limited to 'src/java/com/jogamp/gluegen/CMethodBindingEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/CMethodBindingEmitter.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
index d18ea3d..242ca15 100644
--- a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
+++ b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java
@@ -61,22 +61,22 @@ public class CMethodBindingEmitter extends FunctionEmitter {
protected MethodBinding binding;
/** Name of the package in which the corresponding Java method resides.*/
- private String packageName;
+ private final String packageName;
/** Name of the class in which the corresponding Java method resides.*/
- private String className;
+ private final String className;
/**
* Whether or not the Java<->C JNI binding for this emitter's MethodBinding
* is overloaded.
*/
- private boolean isOverloadedBinding;
+ private final boolean isOverloadedBinding;
/**
* Whether or not the Java-side of the Java<->C JNI binding for this
* emitter's MethodBinding is static.
*/
- private boolean isJavaMethodStatic;
+ private final boolean isJavaMethodStatic;
// Flags which change various aspects of glue code generation
protected boolean forImplementingMethodCall;
@@ -427,8 +427,9 @@ public class CMethodBindingEmitter extends FunctionEmitter {
writer.println(" jsize _tmpArrayLen;");
// Pointer to the data in the Buffer, taking the offset into account
- if(type.isNIOBufferArray())
+ if(type.isNIOBufferArray()) {
writer.println(" int * _offsetHandle = NULL;");
+ }
emittedDataCopyTemps = true;
}