summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/SecurityUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
committerSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
commitdf9ff7f340a5ab4e07efc613f5f264eeae63d4c7 (patch)
tree239ae276b82024b140428e6c0fe5d739fdd686a4 /src/java/com/jogamp/common/util/SecurityUtil.java
parenteb47aaba63e3b1bf55f274a0f338f1010a017ae4 (diff)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74)
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/common/util/SecurityUtil.java')
-rw-r--r--src/java/com/jogamp/common/util/SecurityUtil.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/java/com/jogamp/common/util/SecurityUtil.java b/src/java/com/jogamp/common/util/SecurityUtil.java
index 4586d22..1b8b7c2 100644
--- a/src/java/com/jogamp/common/util/SecurityUtil.java
+++ b/src/java/com/jogamp/common/util/SecurityUtil.java
@@ -56,7 +56,7 @@ public class SecurityUtil {
try {
insecPD.implies(allPermissions);
_hasAllPermissions = true;
- } catch( SecurityException ace ) {
+ } catch( final SecurityException ace ) {
_hasAllPermissions = false;
}
hasAllPermissions = _hasAllPermissions;
@@ -92,11 +92,11 @@ public class SecurityUtil {
* or the installed {@link SecurityManager}'s <code>checkPermission(perm)</code>
* passes. Otherwise method returns <code>false</code>.
*/
- public static final boolean hasPermission(Permission perm) {
+ public static final boolean hasPermission(final Permission perm) {
try {
checkPermission(perm);
return true;
- } catch( SecurityException ace ) {
+ } catch( final SecurityException ace ) {
return false;
}
}
@@ -113,7 +113,7 @@ public class SecurityUtil {
* Throws an {@link SecurityException} if an installed {@link SecurityManager}
* does not permit the requested {@link Permission}.
*/
- public static final void checkPermission(Permission perm) throws SecurityException {
+ public static final void checkPermission(final Permission perm) throws SecurityException {
if( null != securityManager ) {
securityManager.checkPermission(perm);
}
@@ -124,11 +124,11 @@ public class SecurityUtil {
* or the installed {@link SecurityManager}'s <code>checkLink(libName)</code>
* passes. Otherwise method returns <code>false</code>.
*/
- public static final boolean hasLinkPermission(String libName) {
+ public static final boolean hasLinkPermission(final String libName) {
try {
checkLinkPermission(libName);
return true;
- } catch( SecurityException ace ) {
+ } catch( final SecurityException ace ) {
return false;
}
}
@@ -137,7 +137,7 @@ public class SecurityUtil {
* Throws an {@link SecurityException} if an installed {@link SecurityManager}
* does not permit to dynamically link the given libName.
*/
- public static final void checkLinkPermission(String libName) throws SecurityException {
+ public static final void checkLinkPermission(final String libName) throws SecurityException {
if( null != securityManager ) {
securityManager.checkLink(libName);
}
@@ -166,7 +166,7 @@ public class SecurityUtil {
return (null != certs && certs.length>0) ? certs : null;
}
- public static final boolean equals(Certificate[] a, Certificate[] b) {
+ public static final boolean equals(final Certificate[] a, final Certificate[] b) {
if(a == b) {
return true;
}