[jboss-cvs] Picketbox SVN: r77 - trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 6 16:01:18 EDT 2010


Author: anil.saldhana at jboss.com
Date: 2010-04-06 16:01:17 -0400 (Tue, 06 Apr 2010)
New Revision: 77

Modified:
   trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/SecurityAssociation.java
Log:
SECURITY-481: remove suppress warnings

Modified: trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/SecurityAssociation.java
===================================================================
--- trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/SecurityAssociation.java	2010-04-06 20:00:41 UTC (rev 76)
+++ trunk/security-jboss-sx/jbosssx/src/main/java/org/jboss/security/SecurityAssociation.java	2010-04-06 20:01:17 UTC (rev 77)
@@ -908,7 +908,7 @@
             local = new ArrayListInheritableLocal();
       }
       
-      @SuppressWarnings({"unchecked", "unused"})
+      @SuppressWarnings({"unchecked"})
       int size()
       {
          ArrayList stack = (ArrayList) local.get();
@@ -922,7 +922,7 @@
          stack.add(runAs);
       }
 
-      @SuppressWarnings({"unchecked", "unused"})
+      @SuppressWarnings({"unchecked"})
       RunAsIdentity pop()
       {
          ArrayList stack = (ArrayList) local.get();
@@ -938,7 +938,7 @@
        * with the value at depth.
        * @return The run-as identity if one exists, null otherwise.
        */
-      @SuppressWarnings({"unchecked", "unused"})
+      @SuppressWarnings({"unchecked"})
       RunAsIdentity peek(int depth)
       {
          ArrayList stack = (ArrayList) local.get();
@@ -1044,8 +1044,7 @@
          else
             local = new ArrayListInheritableLocal();
       }
-      
-      @SuppressWarnings("unused")
+       
       int size()
       {
          ArrayList stack = (ArrayList) local.get();
@@ -1159,8 +1158,7 @@
        * threads sharing the unsynchronized map of the parent thread.
        * @param parentValue - the parent HashMap
        * @return a copy of the parent thread map
-       */
-      @SuppressWarnings("unused")
+       */ 
       protected HashMap<String,Object> childValue(Object parentValue)
       {
          HashMap<String,Object> map = (HashMap<String,Object>) parentValue;




More information about the jboss-cvs-commits mailing list