From 7607867f0bba56792cad320695d6209b49acce9d Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Thu, 17 Oct 2013 21:34:47 -0700 Subject: gluegen: add all missing @Override annotations Signed-off-by: Harvey Harrison --- src/java/com/jogamp/gluegen/CMethodBindingEmitter.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/java/com/jogamp/gluegen/CMethodBindingEmitter.java') diff --git a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java index 7ae3192..d856767 100644 --- a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java +++ b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java @@ -147,6 +147,7 @@ public class CMethodBindingEmitter extends FunctionEmitter { public final MethodBinding getBinding() { return binding; } + @Override public String getName() { return binding.getName(); } @@ -291,12 +292,14 @@ public class CMethodBindingEmitter extends FunctionEmitter { public final MachineDescription getMachineDescription() { return machDesc; } + @Override protected void emitReturnType(PrintWriter writer) { writer.print("JNIEXPORT "); writer.print(binding.getJavaReturnType().jniTypeName()); writer.print(" JNICALL"); } + @Override protected void emitName(PrintWriter writer) { writer.println(); // start name on new line writer.print("Java_"); @@ -326,6 +329,7 @@ public class CMethodBindingEmitter extends FunctionEmitter { return ""; } + @Override protected int emitArguments(PrintWriter writer) { writer.print("JNIEnv *env, "); int numEmitted = 1; // initially just the JNIEnv @@ -374,6 +378,7 @@ public class CMethodBindingEmitter extends FunctionEmitter { } + @Override protected void emitBody(PrintWriter writer) { writer.println(" {"); // writer.println("printf(\" - - - - "+ getName() + getImplSuffix() +" - - - -\\n\");"); @@ -1478,6 +1483,7 @@ public class CMethodBindingEmitter extends FunctionEmitter { * emitter java method. */ protected static class DefaultCommentEmitter implements CommentEmitter { + @Override public void emit(FunctionEmitter emitter, PrintWriter writer) { emitBeginning((CMethodBindingEmitter)emitter, writer); emitEnding((CMethodBindingEmitter)emitter, writer); -- cgit v1.2.3