Remove Deprecated EvaluationContextExtensionSupport Usage
EvaluationContextExtensionSupport is deprecated. Instead classes should implement EvaluationContextExtension directly. Fixes: gh-5886
This commit is contained in:
parent
b4cad2c8b9
commit
508f0bc870
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
package org.springframework.security.data.repository.query;
|
||||
|
||||
import org.springframework.data.repository.query.spi.EvaluationContextExtensionSupport;
|
||||
import org.springframework.data.repository.query.spi.EvaluationContextExtension;
|
||||
import org.springframework.security.access.expression.SecurityExpressionRoot;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.security.core.context.SecurityContext;
|
||||
|
@ -79,7 +79,7 @@ import org.springframework.security.core.context.SecurityContextHolder;
|
|||
* @author Rob Winch
|
||||
*/
|
||||
public class SecurityEvaluationContextExtension
|
||||
extends EvaluationContextExtensionSupport {
|
||||
implements EvaluationContextExtension {
|
||||
private Authentication authentication;
|
||||
|
||||
/**
|
||||
|
@ -117,4 +117,4 @@ public class SecurityEvaluationContextExtension
|
|||
SecurityContext context = SecurityContextHolder.getContext();
|
||||
return context.getAuthentication();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue