summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-10-21 00:02:17 -0700
committerHarvey Harrison <[email protected]>2013-10-21 00:29:55 -0700
commitaba59607bc738361dd81c5cd5362ad0ec322b441 (patch)
tree3dad8ff77cf13eab71dc81a3c187904e583e023f /src/jogl/classes/com/jogamp
parent6d841a02d084142e2f90333a420cd39af1188d80 (diff)
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 <[email protected]>
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java3
1 files changed, 2 insertions, 1 deletions
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\");");