From 27f6fce2e629e421793eaeb0e09cb6c10d9c0aa1 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 21 Oct 2013 00:43:46 -0700 Subject: jogl: use .format() to build the method signature when generating pipeline code Signed-off-by: Harvey Harrison --- .../com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java index 73ccabfbd..082ecfe5e 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -456,14 +456,10 @@ public class BuildComposablePipeline { } protected void emitSignature(PrintWriter output, Method m) { - output.println(" @Override"); - output.print(" public "); - output.print(JavaType.createForClass(m.getReturnType()).getName()); - output.print(' '); - output.print(m.getName()); - output.print('('); - output.print(getArgListAsString(m, true, true)); - output.println(")"); + output.format(" @Override%n public %s %s(%s)%n", + JavaType.createForClass(m.getReturnType()).getName(), + m.getName(), + getArgListAsString(m, true, true)); } protected void emitBody(PrintWriter output, Method m, boolean runHooks) { -- cgit v1.2.3