summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-01-09 03:06:49 (EST)
committerCarsten Drossel2009-01-09 03:06:49 (EST)
commitd50a41fe94f4d9b74ee3a8718d9ed1b95a29eed9 (patch)
tree5872ae49afbf7ff9d2e0621cc665d243f2d15d01
parent088a854dec4df2f1c3fd0be6ef046b37adde8f50 (diff)
downloadorg.eclipse.riena-d50a41fe94f4d9b74ee3a8718d9ed1b95a29eed9.zip
org.eclipse.riena-d50a41fe94f4d9b74ee3a8718d9ed1b95a29eed9.tar.gz
org.eclipse.riena-d50a41fe94f4d9b74ee3a8718d9ed1b95a29eed9.tar.bz2
fixed warnings
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/internal/security/common/SentinelServiceImpl.java6
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SubjectAccessor.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/internal/security/common/SentinelServiceImpl.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/internal/security/common/SentinelServiceImpl.java
index 52af68a..c5a1b3a 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/internal/security/common/SentinelServiceImpl.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/internal/security/common/SentinelServiceImpl.java
@@ -104,12 +104,12 @@ public class SentinelServiceImpl implements ISentinelService {
Set<Principal> principals = subject.getPrincipals();
Permissions allPerms = new Permissions();
ArrayList<Principal> missingPrincipals = new ArrayList<Principal>();
- IPermissionCache permCache = getPermissionCache();
+ IPermissionCache thePermCache = getPermissionCache();
// iterate over the principals in the subject and try to find an entry in the PermissionCache
// add principals for which there are no permissions into the missingPrincipals ArrayList
for (Principal principal : principals) {
- Permissions perms = (Permissions) permCache.getPermissions(principal);
+ Permissions perms = (Permissions) thePermCache.getPermissions(principal);
if (perms == null) {
missingPrincipals.add(principal);
} else {
@@ -126,7 +126,7 @@ public class SentinelServiceImpl implements ISentinelService {
Permissions[] permissionsArray = authService.getPermissions(missingPrincipals
.toArray(new Principal[missingPrincipals.size()]));
for (int i = 0; i < missingPrincipals.size(); i++) {
- permCache.putPermissions(missingPrincipals.get(i), permissionsArray[i]);
+ thePermCache.putPermissions(missingPrincipals.get(i), permissionsArray[i]);
Enumeration<Permission> permEnum = permissionsArray[i].elements();
while (permEnum.hasMoreElements()) {
allPerms.add(permEnum.nextElement());
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SubjectAccessor.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SubjectAccessor.java
index 9563ba1..b7b1551 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SubjectAccessor.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SubjectAccessor.java
@@ -19,7 +19,7 @@ import org.eclipse.riena.internal.security.common.Activator;
* A convenient class to access the current Subject from the
* SubjectHolderService
*/
-public class SubjectAccessor {
+public final class SubjectAccessor {
private ISubjectHolderService subjectHolderService;
private static SubjectAccessor myself;