DATAJPA-1368 - Polishing.
Removed superfluous import, throws declaration and public modifiers. Uses <> operator where applicable. Original pull request: #280.
This commit is contained in:
@@ -88,7 +88,7 @@ public class QueryByExamplePredicateBuilder {
|
||||
* @return never {@literal null}.
|
||||
*/
|
||||
public static <T> Predicate getPredicate(Root<T> root, CriteriaBuilder cb, Example<T> example,
|
||||
EscapeCharacter escapeCharacter) {
|
||||
EscapeCharacter escapeCharacter) {
|
||||
|
||||
Assert.notNull(root, "Root must not be null!");
|
||||
Assert.notNull(cb, "CriteriaBuilder must not be null!");
|
||||
|
||||
@@ -28,7 +28,6 @@ import javax.persistence.QueryHint;
|
||||
|
||||
import org.aopalliance.intercept.MethodInterceptor;
|
||||
import org.aopalliance.intercept.MethodInvocation;
|
||||
|
||||
import org.springframework.aop.Advisor;
|
||||
import org.springframework.aop.TargetSource;
|
||||
import org.springframework.aop.framework.ProxyFactory;
|
||||
@@ -86,7 +85,7 @@ class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, B
|
||||
* Returns a {@link CrudMethodMetadata} proxy that will lookup the actual target object by obtaining a thread bound
|
||||
* instance from the {@link TransactionSynchronizationManager} later.
|
||||
*/
|
||||
public CrudMethodMetadata getCrudMethodMetadata() {
|
||||
CrudMethodMetadata getCrudMethodMetadata() {
|
||||
|
||||
ProxyFactory factory = new ProxyFactory();
|
||||
|
||||
@@ -266,7 +265,7 @@ class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, B
|
||||
* @see org.springframework.aop.TargetSource#getTarget()
|
||||
*/
|
||||
@Override
|
||||
public Object getTarget() throws Exception {
|
||||
public Object getTarget() {
|
||||
|
||||
MethodInvocation invocation = ExposeRepositoryInvocationInterceptor.currentInvocation();
|
||||
return TransactionSynchronizationManager.getResource(invocation.getMethod());
|
||||
@@ -277,7 +276,7 @@ class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, B
|
||||
* @see org.springframework.aop.TargetSource#releaseTarget(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public void releaseTarget(Object target) throws Exception {}
|
||||
public void releaseTarget(Object target) {}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -285,7 +284,7 @@ class CrudMethodMetadataPostProcessor implements RepositoryProxyPostProcessor, B
|
||||
* {@link ExposeInvocationInterceptor} that might expose nested proxy calls to e.g. proxied transaction managers.
|
||||
*
|
||||
* @author Mark Paluch
|
||||
* @since 1.11.13
|
||||
* @since 2.2.0
|
||||
* @see ExposeInvocationInterceptor
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
|
||||
Reference in New Issue
Block a user