Remove @Nullable annotations in UserDetailsMapFactoryBean
This commit is contained in:
parent
c16456623f
commit
316fd0572f
|
@ -17,7 +17,6 @@
|
||||||
package org.springframework.security.config.core.userdetails;
|
package org.springframework.security.config.core.userdetails;
|
||||||
|
|
||||||
import org.springframework.beans.factory.FactoryBean;
|
import org.springframework.beans.factory.FactoryBean;
|
||||||
import org.springframework.lang.Nullable;
|
|
||||||
import org.springframework.security.core.userdetails.User;
|
import org.springframework.security.core.userdetails.User;
|
||||||
import org.springframework.security.core.userdetails.UserDetails;
|
import org.springframework.security.core.userdetails.UserDetails;
|
||||||
import org.springframework.security.core.userdetails.memory.UserAttribute;
|
import org.springframework.security.core.userdetails.memory.UserAttribute;
|
||||||
|
@ -54,7 +53,6 @@ public class UserDetailsMapFactoryBean implements FactoryBean<Collection<UserDet
|
||||||
this.userProperties = userProperties;
|
this.userProperties = userProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
|
||||||
@Override
|
@Override
|
||||||
public Collection<UserDetails> getObject() throws Exception {
|
public Collection<UserDetails> getObject() throws Exception {
|
||||||
Collection<UserDetails> users = new ArrayList<>(this.userProperties.size());
|
Collection<UserDetails> users = new ArrayList<>(this.userProperties.size());
|
||||||
|
@ -78,7 +76,6 @@ public class UserDetailsMapFactoryBean implements FactoryBean<Collection<UserDet
|
||||||
} return users;
|
} return users;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
|
||||||
@Override
|
@Override
|
||||||
public Class<?> getObjectType() {
|
public Class<?> getObjectType() {
|
||||||
return Collection.class;
|
return Collection.class;
|
||||||
|
|
Loading…
Reference in New Issue