Skip to content

Commit b05c4e7

Browse files
mp911deodrotbohm
authored andcommitted
DATACMNS-1126 - Polishing.
Trailing whitespace in ReflectionUtils. Original pull request: #233.
1 parent 22b3780 commit b05c4e7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/main/java/org/springframework/data/util/ReflectionUtils.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
/**
4242
* Spring Data specific reflection utility methods and classes.
43-
*
43+
*
4444
* @author Oliver Gierke
4545
* @author Thomas Darimont
4646
* @author Christoph Strobl
@@ -56,7 +56,7 @@ public class ReflectionUtils {
5656
/**
5757
* Creates an instance of the class with the given fully qualified name or returns the given default instance if the
5858
* class cannot be loaded or instantiated.
59-
*
59+
*
6060
* @param classname the fully qualified class name to create an instance for.
6161
* @param defaultInstance the instance to fall back to in case the given class cannot be loaded or instantiated.
6262
* @return
@@ -74,39 +74,39 @@ public static <T> T createInstanceIfPresent(String classname, T defaultInstance)
7474

7575
/**
7676
* A {@link FieldFilter} that has a description.
77-
*
77+
*
7878
* @author Oliver Gierke
7979
*/
8080
public interface DescribedFieldFilter extends FieldFilter {
8181

8282
/**
8383
* Returns the description of the field filter. Used in exceptions being thrown in case uniqueness shall be enforced
8484
* on the field filter.
85-
*
85+
*
8686
* @return
8787
*/
8888
String getDescription();
8989
}
9090

9191
/**
9292
* A {@link FieldFilter} for a given annotation.
93-
*
93+
*
9494
* @author Oliver Gierke
9595
*/
9696
@RequiredArgsConstructor
9797
public static class AnnotationFieldFilter implements DescribedFieldFilter {
9898

9999
private final @NonNull Class<? extends Annotation> annotationType;
100100

101-
/*
101+
/*
102102
* (non-Javadoc)
103103
* @see org.springframework.util.ReflectionUtils.FieldFilter#matches(java.lang.reflect.Field)
104104
*/
105105
public boolean matches(Field field) {
106106
return AnnotationUtils.getAnnotation(field, annotationType) != null;
107107
}
108108

109-
/*
109+
/*
110110
* (non-Javadoc)
111111
* @see org.springframework.data.util.ReflectionUtils.DescribedFieldFilter#getDescription()
112112
*/
@@ -117,7 +117,7 @@ public String getDescription() {
117117

118118
/**
119119
* Finds the first field on the given class matching the given {@link FieldFilter}.
120-
*
120+
*
121121
* @param type must not be {@literal null}.
122122
* @param filter must not be {@literal null}.
123123
* @return the field matching the filter or {@literal null} in case no field could be found.
@@ -140,7 +140,7 @@ public String getDescription() {
140140
/**
141141
* Finds the field matching the given {@link DescribedFieldFilter}. Will make sure there's only one field matching the
142142
* filter.
143-
*
143+
*
144144
* @see #findField(Class, DescribedFieldFilter, boolean)
145145
* @param type must not be {@literal null}.
146146
* @param filter must not be {@literal null}.
@@ -155,7 +155,7 @@ public static Field findField(Class<?> type, DescribedFieldFilter filter) {
155155
/**
156156
* Finds the field matching the given {@link DescribedFieldFilter}. Will make sure there's only one field matching the
157157
* filter in case {@code enforceUniqueness} is {@literal true}.
158-
*
158+
*
159159
* @param type must not be {@literal null}.
160160
* @param filter must not be {@literal null}.
161161
* @param enforceUniqueness whether to enforce uniqueness of the field
@@ -198,7 +198,7 @@ public static Field findField(Class<?> type, DescribedFieldFilter filter, boolea
198198

199199
/**
200200
* Finds the field of the given name on the given type.
201-
*
201+
*
202202
* @param type must not be {@literal null}.
203203
* @param name must not be {@literal null} or empty.
204204
* @return
@@ -217,7 +217,7 @@ public static Field findRequiredField(Class<?> type, String name) {
217217

218218
/**
219219
* Sets the given field on the given object to the given value. Will make sure the given field is accessible.
220-
*
220+
*
221221
* @param field must not be {@literal null}.
222222
* @param target must not be {@literal null}.
223223
* @param value
@@ -230,7 +230,7 @@ public static void setField(Field field, Object target, @Nullable Object value)
230230

231231
/**
232232
* Finds a constructor on the given type that matches the given constructor arguments.
233-
*
233+
*
234234
* @param type must not be {@literal null}.
235235
* @param constructorArguments must not be {@literal null}.
236236
* @return a {@link Constructor} that is compatible with the given arguments.
@@ -247,7 +247,7 @@ public static Optional<Constructor<?>> findConstructor(Class<?> type, Object...
247247

248248
/**
249249
* Returns the method with the given name of the given class and parameter types.
250-
*
250+
*
251251
* @param type must not be {@literal null}.
252252
* @param name must not be {@literal null}.
253253
* @param parameterTypes must not be {@literal null}.
@@ -273,7 +273,7 @@ public static Method findRequiredMethod(Class<?> type, String name, Class<?>...
273273

274274
/**
275275
* Returns a {@link Stream} of the return and parameters types of the given {@link Method}.
276-
*
276+
*
277277
* @param method must not be {@literal null}.
278278
* @return
279279
* @since 2.0
@@ -290,7 +290,7 @@ public static Stream<Class<?>> returnTypeAndParameters(Method method) {
290290

291291
/**
292292
* Returns the {@link Method} with the given name and parameters declared on the given type, if available.
293-
*
293+
*
294294
* @param type must not be {@literal null}.
295295
* @param name must not be {@literal null} or empty.
296296
* @param parameterTypes must not be {@literal null}.

0 commit comments

Comments
 (0)