소스 검색

Added eclipse plugin to build. Some minor fixes to remove eclipse warnings.

Luke Taylor 15 년 전
부모
커밋
1680807470

+ 1 - 0
build.gradle

@@ -46,6 +46,7 @@ apply plugin: 'idea'
 
 configure(javaProjects) {
     apply plugin: 'idea'
+    apply plugin: 'eclipse'
     ideaModule {
         downloadJavadoc=false
         excludeDirs.add(buildDir)

+ 1 - 1
core/src/main/java/org/springframework/security/authentication/AuthenticationDetailsSourceImpl.java

@@ -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;

+ 0 - 1
itest/context/src/main/java/org/springframework/security/integration/python/PythonInterpreterPreInvocationAdvice.java

@@ -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();

+ 1 - 1
web/src/main/java/org/springframework/security/web/authentication/preauth/websphere/WebSphere2SpringSecurityPropagationInterceptor.java

@@ -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;
     }
 }

+ 1 - 1
web/src/main/java/org/springframework/security/web/authentication/switchuser/SwitchUserFilter.java

@@ -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;
     }

+ 2 - 1
web/src/test/java/org/springframework/security/web/authentication/rememberme/AbstractRememberMeServicesTests.java

@@ -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());