Added eclipse plugin to build. Some minor fixes to remove eclipse warnings.
This commit is contained in:
parent
5f6bcc0e1e
commit
1680807470
|
@ -46,6 +46,7 @@ apply plugin: 'idea'
|
|||
|
||||
configure(javaProjects) {
|
||||
apply plugin: 'idea'
|
||||
apply plugin: 'eclipse'
|
||||
ideaModule {
|
||||
downloadJavadoc=false
|
||||
excludeDirs.add(buildDir)
|
||||
|
|
|
@ -18,7 +18,7 @@ import java.lang.reflect.Constructor;
|
|||
* @deprecated Write an implementation of AuthenticationDetailsSource which returns the desired type directly.
|
||||
*/
|
||||
@Deprecated
|
||||
public class AuthenticationDetailsSourceImpl implements AuthenticationDetailsSource {
|
||||
public class AuthenticationDetailsSourceImpl implements AuthenticationDetailsSource<Object, Object> {
|
||||
//~ Instance fields ================================================================================================
|
||||
|
||||
private Class<?> clazz = AuthenticationDetails.class;
|
||||
|
|
|
@ -21,7 +21,6 @@ import org.springframework.util.ClassUtils;
|
|||
public class PythonInterpreterPreInvocationAdvice implements PreInvocationAuthorizationAdvice{
|
||||
private final ParameterNameDiscoverer parameterNameDiscoverer = new LocalVariableTableParameterNameDiscoverer();
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean before(Authentication authentication, MethodInvocation mi, PreInvocationAttribute preAttr) {
|
||||
PythonInterpreterPreInvocationAttribute pythonAttr = (PythonInterpreterPreInvocationAttribute) preAttr;
|
||||
String script = pythonAttr.getScript();
|
||||
|
|
|
@ -78,7 +78,7 @@ public class WebSphere2SpringSecurityPropagationInterceptor implements MethodInt
|
|||
/**
|
||||
* @param authenticationDetailsSource The authenticationDetailsSource to set.
|
||||
*/
|
||||
public void setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource) {
|
||||
public void setAuthenticationDetailsSource(AuthenticationDetailsSource<?,?> authenticationDetailsSource) {
|
||||
this.authenticationDetailsSource = authenticationDetailsSource;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -372,7 +372,7 @@ public class SwitchUserFilter extends GenericFilterBean implements ApplicationEv
|
|||
this.eventPublisher = eventPublisher;
|
||||
}
|
||||
|
||||
public void setAuthenticationDetailsSource(AuthenticationDetailsSource authenticationDetailsSource) {
|
||||
public void setAuthenticationDetailsSource(AuthenticationDetailsSource<HttpServletRequest,?> authenticationDetailsSource) {
|
||||
Assert.notNull(authenticationDetailsSource, "AuthenticationDetailsSource required");
|
||||
this.authenticationDetailsSource = authenticationDetailsSource;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.springframework.util.StringUtils;
|
|||
/**
|
||||
* @author Luke Taylor
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public class AbstractRememberMeServicesTests {
|
||||
static User joe = new User("joe", "password", true, true,true,true, AuthorityUtils.createAuthorityList("ROLE_A"));
|
||||
|
||||
|
@ -35,7 +36,7 @@ public class AbstractRememberMeServicesTests {
|
|||
new MockRememberMeServices().decodeCookie("nonBase64CookieValue%");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test
|
||||
public void setAndGetAreConsistent() throws Exception {
|
||||
MockRememberMeServices services = new MockRememberMeServices();
|
||||
assertNotNull(services.getCookieName());
|
||||
|
|
Loading…
Reference in New Issue