Optimize collection usage
[java-idp.git] / src / main / java / edu / internet2 / middleware / shibboleth / idp / session / impl / SessionImpl.java
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} */