diff options
author | Sven Gothel <[email protected]> | 2012-07-19 21:16:38 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-07-19 21:16:38 +0200 |
commit | 23ec994d65329f239f17322ad23510a77e709534 (patch) | |
tree | 9e45c058d16c8c86b3a83f82361f4b0c16d501a4 | |
parent | 2fbad155b38a32f2fb4f8989ffd3ea3dc71f2915 (diff) |
Minor cleanup of JavaEmitterv2.0-rc10
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaEmitter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java index 99a5796..df6f00a 100644 --- a/src/java/com/jogamp/gluegen/JavaEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaEmitter.java @@ -462,8 +462,6 @@ public class JavaEmitter implements GlueEmitter { protected void generatePublicEmitters(MethodBinding binding, List<FunctionEmitter> allEmitters, boolean signatureOnly) { - PrintWriter writer = ((signatureOnly || cfg.allStatic()) ? javaWriter() : javaImplWriter()); - if (cfg.manuallyImplement(binding.getName()) && !signatureOnly) { // We only generate signatures for manually-implemented methods; // user provides the implementation @@ -476,6 +474,8 @@ public class JavaEmitter implements GlueEmitter { return; } + final PrintWriter writer = ((signatureOnly || cfg.allStatic()) ? javaWriter() : javaImplWriter()); + // It's possible we may not need a body even if signatureOnly is // set to false; for example, if the routine doesn't take any // arrays or buffers as arguments |