Remove Eclipse Non-Javadoc comments.

Closes #2522
This commit is contained in:
Jens Schauder
2022-01-05 11:00:48 +01:00
parent 8ec01cb816
commit 38f50e3da8
240 changed files with 0 additions and 4086 deletions

View File

@@ -66,10 +66,6 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
return false;
}
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
*/
@Nullable
@Override
public Object invoke(@SuppressWarnings("null") MethodInvocation invocation) throws Throwable {
@@ -114,10 +110,6 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
private final @Nullable Method privateLookupIn = ReflectionUtils.findMethod(MethodHandles.class,
"privateLookupIn", Class.class, Lookup.class);
/*
* (non-Javadoc)
* @see org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.MethodHandleLookup#lookup(java.lang.reflect.Method)
*/
@Override
MethodHandle lookup(Method method) throws ReflectiveOperationException {
@@ -128,10 +120,6 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
return doLookup(method, getLookup(method.getDeclaringClass(), privateLookupIn));
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.MethodHandleLookup#isAvailable()
*/
@Override
boolean isAvailable() {
return privateLookupIn != null;
@@ -157,10 +145,6 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
private final Lazy<Constructor<Lookup>> constructor = Lazy.of(MethodHandleLookup::getLookupConstructor);
/*
* (non-Javadoc)
* @see org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.MethodHandleLookup#lookup(java.lang.reflect.Method)
*/
@Override
MethodHandle lookup(Method method) throws ReflectiveOperationException {
@@ -173,10 +157,6 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
return constructor.newInstance(method.getDeclaringClass()).unreflectSpecial(method, method.getDeclaringClass());
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.MethodHandleLookup#isAvailable()
*/
@Override
boolean isAvailable() {
return constructor.orElse(null) != null;
@@ -190,19 +170,11 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
*/
FALLBACK {
/*
* (non-Javadoc)
* @see org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.MethodHandleLookup#lookup(java.lang.reflect.Method)
*/
@Override
MethodHandle lookup(Method method) throws ReflectiveOperationException {
return doLookup(method, MethodHandles.lookup());
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.MethodHandleLookup#isAvailable()
*/
@Override
boolean isAvailable() {
return true;

View File

@@ -65,19 +65,11 @@ class DefaultProjectionInformation implements ProjectionInformation {
this.properties = new PropertyDescriptorSource(type).getDescriptors();
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.ProjectionInformation#getType()
*/
@Override
public Class<?> getType() {
return projectionType;
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.ProjectionInformation#getInputProperties()
*/
public List<PropertyDescriptor> getInputProperties() {
return properties.stream()//
@@ -86,10 +78,6 @@ class DefaultProjectionInformation implements ProjectionInformation {
.collect(Collectors.toList());
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.ProjectionInformation#isDynamic()
*/
@Override
public boolean isClosed() {
return this.properties.equals(getInputProperties());

View File

@@ -41,10 +41,6 @@ class MapAccessingMethodInterceptor implements MethodInterceptor {
this.map = map;
}
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
*/
@Nullable
@Override
public Object invoke(@SuppressWarnings("null") MethodInvocation invocation) throws Throwable {

View File

@@ -61,10 +61,6 @@ class ProjectingMethodInterceptor implements MethodInterceptor {
this.conversionService = conversionService;
}
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
*/
@Nullable
@Override
public Object invoke(@SuppressWarnings("null") @NonNull MethodInvocation invocation) throws Throwable {

View File

@@ -49,10 +49,6 @@ class PropertyAccessingMethodInterceptor implements MethodInterceptor {
this.target = new DirectFieldAccessFallbackBeanWrapper(target);
}
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
*/
@Nullable
@Override
public Object invoke(@SuppressWarnings("null") MethodInvocation invocation) throws Throwable {

View File

@@ -72,10 +72,6 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
this.factories.add(PropertyAccessingMethodInvokerFactory.INSTANCE);
}
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader)
*/
@Override
public void setBeanClassLoader(ClassLoader classLoader) {
this.classLoader = classLoader;
@@ -95,10 +91,6 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
this.factories.add(0, factory);
}
/*
* (non-Javadoc)
* @see org.springframework.data.rest.core.projection.ProjectionFactory#createProjection(java.lang.Object, java.lang.Class)
*/
@Override
@SuppressWarnings("unchecked")
public <T> T createProjection(Class<T> projectionType, Object source) {
@@ -123,10 +115,6 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
return (T) factory.getProxy(classLoader == null ? ClassUtils.getDefaultClassLoader() : classLoader);
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.ProjectionFactory#createProjection(java.lang.Class)
*/
@Override
public <T> T createProjection(Class<T> projectionType) {
@@ -135,10 +123,6 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
return createProjection(projectionType, new HashMap<String, Object>());
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.ProjectionFactory#getProjectionInformation(java.lang.Class)
*/
@Override
public final ProjectionInformation getProjectionInformation(Class<?> projectionType) {
@@ -236,10 +220,6 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
this.targetType = targetType;
}
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
*/
@Nullable
@Override
public Object invoke(@SuppressWarnings("null") MethodInvocation invocation) throws Throwable {
@@ -263,20 +243,12 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
INSTANCE;
/*
* (non-Javadoc)
* @see org.springframework.data.projection.MethodInterceptorFactory#createMethodInterceptor(java.lang.Object, java.lang.Class)
*/
@Override
@SuppressWarnings("unchecked")
public MethodInterceptor createMethodInterceptor(Object source, Class<?> targetType) {
return new MapAccessingMethodInterceptor((Map<String, Object>) source);
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.MethodInterceptorFactory#supports(java.lang.Object, java.lang.Class)
*/
@Override
public boolean supports(Object source, Class<?> targetType) {
return Map.class.isInstance(source);
@@ -292,19 +264,11 @@ class ProxyProjectionFactory implements ProjectionFactory, BeanClassLoaderAware
INSTANCE;
/*
* (non-Javadoc)
* @see org.springframework.data.projection.MethodInterceptorFactory#createMethodInterceptor(java.lang.Object, java.lang.Class)
*/
@Override
public MethodInterceptor createMethodInterceptor(Object source, Class<?> targetType) {
return new PropertyAccessingMethodInterceptor(source);
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.MethodInterceptorFactory#supports(java.lang.Object, java.lang.Class)
*/
@Override
public boolean supports(Object source, Class<?> targetType) {
return true;

View File

@@ -49,19 +49,11 @@ public class SpelAwareProxyProjectionFactory extends ProxyProjectionFactory impl
private @Nullable BeanFactory beanFactory;
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory)
*/
@Override
public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
this.beanFactory = beanFactory;
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.ProxyProjectionFactory#createProjectionInformation(java.lang.Class)
*/
@Override
protected ProjectionInformation createProjectionInformation(Class<?> projectionType) {
return new SpelAwareProjectionInformation(projectionType);
@@ -107,10 +99,6 @@ public class SpelAwareProxyProjectionFactory extends ProxyProjectionFactory impl
super(projectionType);
}
/*
* (non-Javadoc)
* @see org.springframework.data.projection.DefaultProjectionInformation#isInputProperty(java.beans.PropertyDescriptor)
*/
@Override
protected boolean isInputProperty(PropertyDescriptor descriptor) {

View File

@@ -124,10 +124,6 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor {
return Collections.unmodifiableMap(expressions);
}
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
*/
@Nullable
@Override
public Object invoke(@SuppressWarnings("null") MethodInvocation invocation) throws Throwable {
@@ -168,10 +164,6 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor {
return this.args;
}
/*
* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object o) {
@@ -190,10 +182,6 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor {
return ObjectUtils.nullSafeEquals(args, that.args);
}
/*
* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
var result = ObjectUtils.nullSafeHashCode(target);
@@ -201,10 +189,6 @@ class SpelEvaluatingMethodInterceptor implements MethodInterceptor {
return result;
}
/*
* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "SpelEvaluatingMethodInterceptor.TargetWrapper(target=" + this.getTarget() + ", args="