DATACMNS-1726 - Delombok source files.

This commit is contained in:
Mark Paluch
2020-05-14 15:46:03 +02:00
parent 302fa6335f
commit 4be5aae181
99 changed files with 3052 additions and 715 deletions

View File

@@ -15,7 +15,6 @@
*/
package org.springframework.data.web;
import lombok.RequiredArgsConstructor;
import net.minidev.json.JSONArray;
import net.minidev.json.JSONObject;
@@ -30,6 +29,7 @@ import java.util.Map;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.core.ResolvableType;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.data.projection.Accessor;
@@ -122,11 +122,14 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
return false;
}
@RequiredArgsConstructor
private static class InputMessageProjecting implements MethodInterceptor {
private final DocumentContext context;
public InputMessageProjecting(DocumentContext context) {
this.context = context;
}
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
@@ -191,11 +194,14 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
return Collections.singletonList("$.".concat(new Accessor(method).getPropertyName()));
}
@RequiredArgsConstructor
private static class ResolvableTypeRef extends TypeRef<Object> {
private final ResolvableType type;
ResolvableTypeRef(ResolvableType type) {
this.type = type;
}
/*
* (non-Javadoc)
* @see com.jayway.jsonpath.TypeRef#getType()

View File

@@ -15,16 +15,11 @@
*/
package org.springframework.data.web;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import java.beans.PropertyDescriptor;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Nonnull;
import org.springframework.beans.AbstractPropertyAccessor;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeansException;
@@ -47,6 +42,7 @@ import org.springframework.expression.spel.SpelEvaluationException;
import org.springframework.expression.spel.SpelParserConfiguration;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.SimpleEvaluationContext;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.web.bind.WebDataBinder;
@@ -80,7 +76,7 @@ class MapDataBinder extends WebDataBinder {
* (non-Javadoc)
* @see org.springframework.validation.DataBinder#getTarget()
*/
@Nonnull
@NonNull
@Override
@SuppressWarnings("unchecked")
public Map<String, Object> getTarget() {
@@ -110,15 +106,21 @@ class MapDataBinder extends WebDataBinder {
* @author Oliver Gierke
* @since 1.10
*/
@RequiredArgsConstructor
private static class MapPropertyAccessor extends AbstractPropertyAccessor {
private static final SpelExpressionParser PARSER = new SpelExpressionParser(
new SpelParserConfiguration(false, true));
private final @NonNull Class<?> type;
private final @NonNull Map<String, Object> map;
private final @NonNull ConversionService conversionService;
private final Class<?> type;
private final Map<String, Object> map;
private final ConversionService conversionService;
public MapPropertyAccessor(Class<?> type, Map<String, Object> map, ConversionService conversionService) {
this.type = type;
this.map = map;
this.conversionService = conversionService;
}
/*
* (non-Javadoc)