aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/GLVersionNumber.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-03 16:21:36 +0200
committerSven Gothel <[email protected]>2014-07-03 16:21:36 +0200
commit556d92b63555a085b25e32b1cd55afce24edd07a (patch)
tree6be2b02c62a77d5aba81ffbe34c46960608be163 /src/jogl/classes/jogamp/opengl/GLVersionNumber.java
parenta90f4a51dffec3247278e3c683ed4462b1dd9ab5 (diff)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74)
- Change non static accesses to static members using declaring type - Change indirect accesses to static members to direct accesses (accesses through subtypes) - Add final modifier to private fields - Add final modifier to method parameters - Add final modifier to local variables - Remove unnecessary casts - Remove unnecessary '$NON-NLS$' tags - Remove trailing white spaces on all lines
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLVersionNumber.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLVersionNumber.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLVersionNumber.java b/src/jogl/classes/jogamp/opengl/GLVersionNumber.java
index 431c1a387..ddcd9626e 100644
--- a/src/jogl/classes/jogamp/opengl/GLVersionNumber.java
+++ b/src/jogl/classes/jogamp/opengl/GLVersionNumber.java
@@ -39,7 +39,7 @@ public class GLVersionNumber extends VersionNumberString {
private final boolean valid;
- private GLVersionNumber(int[] val, int strEnd, short state, String versionString, boolean valid) {
+ private GLVersionNumber(final int[] val, final int strEnd, final short state, final String versionString, final boolean valid) {
super(val[0], val[1], val[2], strEnd, state, versionString);
this.valid = valid;
}
@@ -56,8 +56,8 @@ public class GLVersionNumber extends VersionNumberString {
}
private static volatile java.util.regex.Pattern _Pattern = null;
- public static final GLVersionNumber create(String versionString) {
- int[] val = new int[] { 0, 0, 0 };
+ public static final GLVersionNumber create(final String versionString) {
+ final int[] val = new int[] { 0, 0, 0 };
int strEnd = 0;
short state = 0;
boolean valid = false;
@@ -67,7 +67,7 @@ public class GLVersionNumber extends VersionNumberString {
if (versionString.startsWith("GL_VERSION_")) {
versionPattern = getUnderscorePattern();
} else {
- versionPattern = VersionNumberString.getDefaultVersionNumberPattern();
+ versionPattern = VersionNumber.getDefaultVersionNumberPattern();
}
final VersionNumberString version = new VersionNumberString(versionString, versionPattern);
strEnd = version.endOfStringMatch();
@@ -76,7 +76,7 @@ public class GLVersionNumber extends VersionNumberString {
state = (short) ( ( version.hasMajor() ? VersionNumber.HAS_MAJOR : (short)0 ) |
( version.hasMinor() ? VersionNumber.HAS_MINOR : (short)0 ) );
valid = version.hasMajor() && version.hasMinor(); // Requires at least a defined major and minor version component!
- } catch (Exception e) {
+ } catch (final Exception e) {
e.printStackTrace();
System.err.println("Info: ExtensionAvailabilityCache: FunctionAvailabilityCache.Version.<init>: " + e);
val[0] = 1;
@@ -101,7 +101,7 @@ public class GLVersionNumber extends VersionNumberString {
* 4.3.0 NVIDIA 310.32 -> 310.32 (310.32)
* </pre>
*/
- public static final VersionNumberString createVendorVersion(String versionString) {
+ public static final VersionNumberString createVendorVersion(final String versionString) {
if (versionString == null || versionString.length() <= 0) {
return null;
}