From aba59607bc738361dd81c5cd5362ad0ec322b441 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 21 Oct 2013 00:02:17 -0700 Subject: jogl: adapt code generator to output @Override annotations in various places This adds the @Override to methods in the GL implementations (debug, trace, etc) for methods implementing a GL Profile. It also adds @Override for the toString() method. Signed-off-by: Harvey Harrison --- .../classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/com/jogamp') diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java index 5f358a6d3..73ccabfbd 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -456,8 +456,8 @@ public class BuildComposablePipeline { } protected void emitSignature(PrintWriter output, Method m) { + output.println(" @Override"); output.print(" public "); - output.print(' '); output.print(JavaType.createForClass(m.getReturnType()).getName()); output.print(' '); output.print(m.getName()); @@ -589,6 +589,7 @@ public class BuildComposablePipeline { * closing parenthesis of the class is emitted. */ protected void postMethodEmissionHook(PrintWriter output) { + output.println(" @Override"); output.println(" public String toString() {"); output.println(" StringBuilder sb = new StringBuilder();"); output.println(" sb.append(\"" + getOutputName() + " [ implementing " + baseInterfaceClass.getName() + ",\\n\\t\");"); -- cgit v1.2.3