From 0e79445985e23f0ff8c600137052cc446af421be Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Wed, 23 Oct 2013 10:25:17 -0700 Subject: jogl: add final to Debug wrapper error code and fix indentation Make the indentation consistent in each function wrapper. Signed-off-by: Harvey Harrison --- .../com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/jogl/classes/com') diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java index a51151b82..59ec9d35a 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -464,7 +464,6 @@ public class BuildComposablePipeline { protected void emitBody(PrintWriter output, Method m, boolean runHooks) { output.println(" {"); - output.print(" "); Class retType = m.getReturnType(); boolean callPreDownstreamHook = runHooks && hasPreDownstreamCallHook(m); @@ -510,6 +509,9 @@ public class BuildComposablePipeline { output.print(" return "); } } + else { + output.print(" "); + } output.print(getDownstreamObjectName()); output.print('.'); output.print(m.getName()); @@ -1023,7 +1025,7 @@ public class BuildComposablePipeline { output.println(" insideBeginEndPair = false;"); } - output.println(" int err = checkGLError();"); + output.println(" final int err = checkGLError();"); output.println(" if (err != GL_NO_ERROR) {"); StringBuilder fmtsb = new StringBuilder(); @@ -1172,10 +1174,10 @@ public class BuildComposablePipeline { @Override protected void preDownstreamCallHook(PrintWriter output, Method m) { if (m.getName().equals("glEnd") || m.getName().equals("glEndList")) { - output.println("indent-=2;"); + output.println(" indent-=2;"); output.println(" printIndent();"); } else { - output.println("printIndent();"); + output.println(" printIndent();"); } output.print(" print("); -- cgit v1.2.3