diff options
author | Michael Bien <[email protected]> | 2011-02-26 18:03:48 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-26 18:03:48 +0100 |
commit | 77546f8968779fbdcfe58f89c6924803642889c7 (patch) | |
tree | 20cb5573576ccd15da822bee0e432a969acbe4f7 /src/jogl/classes/com/jogamp/opengl/JoglVersion.java | |
parent | 112e2a26004d974c3bba822fe1467a34784ec57d (diff) |
changes due to code cleanup in gluegen.
- StringBuffer -> StringBuilder
- ReflectionUtil.getBaseName -> class.getSimpleName()
- cleanup imports, generics and @Override for all touched classes
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/JoglVersion.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/JoglVersion.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java index b1db2974a..ef1ecd7e7 100644 --- a/src/jogl/classes/com/jogamp/opengl/JoglVersion.java +++ b/src/jogl/classes/com/jogamp/opengl/JoglVersion.java @@ -33,7 +33,6 @@ import javax.media.opengl.*; import com.jogamp.common.os.Platform; import com.jogamp.common.util.VersionUtil; import com.jogamp.common.util.JogampVersion; -import com.jogamp.common.util.ReflectionUtil; import com.jogamp.nativewindow.NativeWindowVersion; import java.util.jar.Manifest; import javax.media.nativewindow.AbstractGraphicsDevice; @@ -59,7 +58,7 @@ public class JoglVersion extends JogampVersion { return jogampCommonVersionInfo; } - public StringBuffer toString(GL gl, StringBuffer sb) { + public StringBuilder toString(GL gl, StringBuilder sb) { sb = super.toString(sb).append(Platform.getNewline()); getGLInfo(gl, sb); return sb; @@ -69,16 +68,16 @@ public class JoglVersion extends JogampVersion { return toString(gl, null).toString(); } - public static StringBuffer getGLInfo(GL gl, StringBuffer sb) { + public static StringBuilder getGLInfo(GL gl, StringBuilder sb) { AbstractGraphicsDevice device = gl.getContext().getGLDrawable().getNativeSurface() .getGraphicsConfiguration().getNativeGraphicsConfiguration().getScreen().getDevice(); if(null==sb) { - sb = new StringBuffer(); + sb = new StringBuilder(); } GLContext ctx = gl.getContext(); sb.append(VersionUtil.SEPERATOR).append(Platform.getNewline()); - sb.append(ReflectionUtil.getBaseName(device.getClass())).append("[type ") + sb.append(device.getClass().getSimpleName()).append("[type ") .append(device.getType()).append(", connection ").append(device.getConnection()).append("]: ") .append(GLProfile.glAvailabilityToString(device)); sb.append(Platform.getNewline()); |