Remove @Nullable annotations in UserDetailsMapFactoryBean

This commit is contained in:
Johnny Lim 2017-12-06 00:18:21 +09:00 committed by Rob Winch
parent c16456623f
commit 316fd0572f
1 changed files with 0 additions and 3 deletions

View File

@ -17,7 +17,6 @@
package org.springframework.security.config.core.userdetails;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.lang.Nullable;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.memory.UserAttribute;
@ -54,7 +53,6 @@ public class UserDetailsMapFactoryBean implements FactoryBean<Collection<UserDet
this.userProperties = userProperties;
}
@Nullable
@Override
public Collection<UserDetails> getObject() throws Exception {
Collection<UserDetails> users = new ArrayList<>(this.userProperties.size());
@ -78,7 +76,6 @@ public class UserDetailsMapFactoryBean implements FactoryBean<Collection<UserDet
} return users;
}
@Nullable
@Override
public Class<?> getObjectType() {
return Collection.class;