aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-14 08:33:27 +0100
committerSven Gothel <[email protected]>2010-11-14 08:33:27 +0100
commitff239e4eff0bbf28f925a4dffb15638f3dfd51be (patch)
treee16c3d22b6ddd319f2ccd741681d2577767cdf63 /src
parent13f42c3d3601447aad545d1c950202d81d4f7ade (diff)
JogampVersion: StringBuffer getInfo(StringBuffer) -> StringBuffer toStringBuffer(StringBuffer) ; Add String toString() { ..}
Diffstat (limited to 'src')
-rw-r--r--src/java/com/jogamp/common/GlueGenVersion.java2
-rw-r--r--src/java/com/jogamp/common/util/JogampVersion.java5
-rw-r--r--src/java/com/jogamp/gluegen/GlueGen.java2
-rw-r--r--src/junit/com/jogamp/common/util/TestVersionInfo.java2
4 files changed, 7 insertions, 4 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();
+ }
}
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();
}
diff --git a/src/junit/com/jogamp/common/util/TestVersionInfo.java b/src/junit/com/jogamp/common/util/TestVersionInfo.java
index 0ed6678..65e6e63 100644
--- a/src/junit/com/jogamp/common/util/TestVersionInfo.java
+++ b/src/junit/com/jogamp/common/util/TestVersionInfo.java
@@ -38,7 +38,7 @@ public class TestVersionInfo {
@Test
public void testInfo01() {
System.err.println("Version Info:");
- System.err.println(GlueGenVersion.getInstance().getInfo(null));
+ System.err.println(GlueGenVersion.getInstance());
System.err.println("");
System.err.println("Full Manifest:");
System.err.println(GlueGenVersion.getInstance().getFullManifestInfo(null));