tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r770787 - /tomcat/trunk/java/org/apache/catalina/realm/JAASMemoryLoginModule.java
Date Fri, 01 May 2009 18:51:22 GMT
Author: markt
Date: Fri May  1 18:51:22 2009
New Revision: 770787

URL: http://svn.apache.org/viewvc?rev=770787&view=rev
Log:
Add generics, remove unused field

Modified:
    tomcat/trunk/java/org/apache/catalina/realm/JAASMemoryLoginModule.java

Modified: tomcat/trunk/java/org/apache/catalina/realm/JAASMemoryLoginModule.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/realm/JAASMemoryLoginModule.java?rev=770787&r1=770786&r2=770787&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/realm/JAASMemoryLoginModule.java (original)
+++ tomcat/trunk/java/org/apache/catalina/realm/JAASMemoryLoginModule.java Fri May  1 18:51:22
2009
@@ -23,7 +23,6 @@
 import java.io.IOException;
 import java.security.Principal;
 import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.Map;
 
 import javax.security.auth.Subject;
@@ -100,7 +99,7 @@
     /**
      * The configuration information for this <code>LoginModule</code>.
      */
-    protected Map options = null;
+    protected Map<String,?> options = null;
 
 
     /**
@@ -117,11 +116,6 @@
 
 
     /**
-     * The set of <code>Principals</code> loaded from our configuration file.
-     */
-    protected HashMap principals = new HashMap();
-
-    /**
      * The string manager for this package.
      */
     protected static StringManager sm =
@@ -131,7 +125,7 @@
      * The state information that is shared with other configured
      * <code>LoginModule</code> instances.
      */
-    protected Map sharedState = null;
+    protected Map<String,?> sharedState = null;
 
 
     /**
@@ -277,7 +271,7 @@
      *  <code>LoginModule</code> instance
      */
     public void initialize(Subject subject, CallbackHandler callbackHandler,
-                           Map sharedState, Map options) {
+                           Map<String,?> sharedState, Map<String,?> options)
{
         log.debug("Init");
 
         // Save configuration values



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message