From ff239e4eff0bbf28f925a4dffb15638f3dfd51be Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 14 Nov 2010 08:33:27 +0100 Subject: JogampVersion: StringBuffer getInfo(StringBuffer) -> StringBuffer toStringBuffer(StringBuffer) ; Add String toString() { ..} --- src/java/com/jogamp/common/GlueGenVersion.java | 2 +- src/java/com/jogamp/common/util/JogampVersion.java | 5 ++++- src/java/com/jogamp/gluegen/GlueGen.java | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/java') diff --git a/src/java/com/jogamp/common/GlueGenVersion.java b/src/java/com/jogamp/common/GlueGenVersion.java index 7b1f157..e73d4bb 100644 --- a/src/java/com/jogamp/common/GlueGenVersion.java +++ b/src/java/com/jogamp/common/GlueGenVersion.java @@ -55,6 +55,6 @@ public class GlueGenVersion extends JogampVersion { } public static void main(String args[]) { - System.err.println(GlueGenVersion.getInstance().getInfo(null)); + System.err.println(GlueGenVersion.getInstance()); } } diff --git a/src/java/com/jogamp/common/util/JogampVersion.java b/src/java/com/jogamp/common/util/JogampVersion.java index 9a7bf49..914da3d 100644 --- a/src/java/com/jogamp/common/util/JogampVersion.java +++ b/src/java/com/jogamp/common/util/JogampVersion.java @@ -179,7 +179,7 @@ public class JogampVersion { return sb; } - public StringBuffer getInfo(StringBuffer sb) { + public StringBuffer toStringBuffer(StringBuffer sb) { if(null==sb) { sb = new StringBuffer(); } @@ -195,4 +195,7 @@ public class JogampVersion { return sb; } + public String toString() { + return toStringBuffer(null).toString(); + } } diff --git a/src/java/com/jogamp/gluegen/GlueGen.java b/src/java/com/jogamp/gluegen/GlueGen.java index d43f2b5..04a4343 100644 --- a/src/java/com/jogamp/gluegen/GlueGen.java +++ b/src/java/com/jogamp/gluegen/GlueGen.java @@ -308,7 +308,7 @@ public class GlueGen implements GlueEmitterControls { public static void main(String... args) { if (args.length == 0) { - System.err.println(GlueGenVersion.getInstance().getInfo(null)); + System.err.println(GlueGenVersion.getInstance()); usage(); } -- cgit v1.2.3