[java-identity-provider COMMIT] /trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ExtractRemoteUser.java
noreply at shibboleth.net
noreply at shibboleth.net
Thu Oct 17 16:45:20 EDT 2013
Author: scantor
Date: Thu Oct 17 16:45:19 2013
New Revision: 4873
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4873&view=rev
Log:
Add some annotations.
Modified:
trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ExtractRemoteUser.java
Modified: trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ExtractRemoteUser.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ExtractRemoteUser.java?rev=4873&r1=4872&r2=4873&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ExtractRemoteUser.java (original)
+++ trunk/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/ExtractRemoteUser.java Thu Oct 17 16:45:19 2013
@@ -29,6 +29,8 @@
import net.shibboleth.idp.authn.context.AuthenticationContext;
import net.shibboleth.idp.authn.context.UsernameContext;
import net.shibboleth.utilities.java.support.annotation.constraint.NonnullElements;
+import net.shibboleth.utilities.java.support.annotation.constraint.NotLive;
+import net.shibboleth.utilities.java.support.annotation.constraint.Unmodifiable;
import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
import net.shibboleth.utilities.java.support.component.ComponentSupport;
@@ -39,6 +41,7 @@
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;
+import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
/**
@@ -88,7 +91,7 @@
*
* @param attributes list of request attributes to check
*/
- void setCheckAttributes(List<String> attributes) {
+ void setCheckAttributes(@Nonnull @NonnullElements final List<String> attributes) {
ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
checkAttributes = Lists.newArrayList(Collections2.filter(attributes, Predicates.notNull()));
@@ -99,7 +102,7 @@
*
* @param headers list of request headers to check
*/
- void setCheckHeaders(List<String> headers) {
+ void setCheckHeaders(@Nonnull @NonnullElements final List<String> headers) {
ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
checkHeaders = Lists.newArrayList(Collections2.filter(headers, Predicates.notNull()));
More information about the commits
mailing list