summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/openal/ALFactory.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-03 16:27:25 +0200
committerSven Gothel <[email protected]>2014-07-03 16:27:25 +0200
commit0430708fbcbdc5572affb45318eb782adffd13f1 (patch)
tree61ac401ea90e07ae0a7ac639da1e6a240f1b87cd /src/java/com/jogamp/openal/ALFactory.java
parent21cd5206625aaa8914e53bdfaab8e7ae4e497a08 (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/java/com/jogamp/openal/ALFactory.java')
-rw-r--r--src/java/com/jogamp/openal/ALFactory.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/com/jogamp/openal/ALFactory.java b/src/java/com/jogamp/openal/ALFactory.java
index cb1c0cd..ecfdb2b 100644
--- a/src/java/com/jogamp/openal/ALFactory.java
+++ b/src/java/com/jogamp/openal/ALFactory.java
@@ -39,6 +39,7 @@ import jogamp.openal.ALImpl;
import jogamp.openal.Debug;
import com.jogamp.common.os.Platform;
+import com.jogamp.common.util.PropertyAccess;
/**
* This class provides factory methods for generating AL and ALC objects.
@@ -65,7 +66,7 @@ public class ALFactory {
static {
Platform.initSingleton();
- final String choice = Debug.getProperty("joal.openal.lib", true);
+ final String choice = PropertyAccess.getProperty("joal.openal.lib", true);
boolean useSystem = false; // default on all systems
if( null != choice ) {
if( choice.equals("system") ) {
@@ -95,9 +96,9 @@ public class ALFactory {
System.err.println("AL initialized");
}
}
- } catch (UnsatisfiedLinkError e) {
+ } catch (final UnsatisfiedLinkError e) {
throw new ALException(e);
- } catch (ExceptionInInitializerError er) {
+ } catch (final ExceptionInInitializerError er) {
throw new ALException(er);
}
}