Optimize collection usage
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 13 Dec 2008 13:18:47 +0000 (13:18 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 13 Dec 2008 13:18:47 +0000 (13:18 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2821 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/authn/LoginContext.java
src/main/java/edu/internet2/middleware/shibboleth/idp/session/impl/SessionImpl.java

index ed6c63d..18ea7bb 100644 (file)
@@ -63,7 +63,7 @@ public class LoginContext implements Serializable {
     private boolean passiveAuth;
 
     /** A catch-all map for other properties. */
-    private Map<String, Serializable> propsMap = new ConcurrentHashMap<String, Serializable>();
+    private Map<String, Serializable> propsMap = new ConcurrentHashMap<String, Serializable>(0);
 
     /** The ProfileHandler URL. */
     private String profileHandlerURL;
index c181b8f..17f8cba 100644 (file)
@@ -50,8 +50,8 @@ public class SessionImpl extends AbstractSession implements Session {
         super(sessionId, timeout);
 
         sessionSecret = secret;
-        authnMethods = new ConcurrentHashMap<String, AuthenticationMethodInformation>();
-        servicesInformation = new ConcurrentHashMap<String, ServiceInformation>();
+        authnMethods = new ConcurrentHashMap<String, AuthenticationMethodInformation>(2);
+        servicesInformation = new ConcurrentHashMap<String, ServiceInformation>(2);
     }
 
     /** {@inheritDoc} */