diff options
Diffstat (limited to 'src/java/com/jogamp/common')
-rw-r--r-- | src/java/com/jogamp/common/GlueGenVersion.java | 2 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/JogampVersion.java | 5 |
2 files changed, 5 insertions, 2 deletions
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(); + } } |