Skip to content

Commit 1bf318f

Browse files
schauderodrotbohm
authored andcommitted
DATACMNS-1026 - Polishing.
Minor improvements to Javadoc. Original pull request: #217.
1 parent 4262108 commit 1bf318f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/main/java/org/springframework/data/repository/query/ExtensionAwareEvaluationContextProvider.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public ExtensionAwareEvaluationContextProvider() {
8080
/**
8181
* Creates a new {@link ExtensionAwareEvaluationContextProvider} for the given {@link EvaluationContextExtension}s.
8282
*
83-
* @param adapters must not be {@literal null}.
83+
* @param extensions must not be {@literal null}.
8484
*/
8585
public ExtensionAwareEvaluationContextProvider(List<? extends EvaluationContextExtension> extensions) {
8686

@@ -210,7 +210,7 @@ private class ExtensionAwarePropertyAccessor implements PropertyAccessor, Method
210210
/**
211211
* Creates a new {@link ExtensionAwarePropertyAccessor} for the given {@link EvaluationContextExtension}s.
212212
*
213-
* @param adapters must not be {@literal null}.
213+
* @param extensions must not be {@literal null}.
214214
*/
215215
public ExtensionAwarePropertyAccessor(List<? extends EvaluationContextExtension> extensions) {
216216

@@ -307,12 +307,12 @@ public Class<?>[] getSpecificTargetClasses() {
307307
}
308308

309309
/**
310-
* Returns a {@link MethodExecutor}
310+
* Returns a {@link MethodExecutor} wrapping a function from the adapter passed in as an argument.
311311
*
312-
* @param adapter
313-
* @param name
314-
* @param argumentTypes
315-
* @return
312+
* @param adapter the source of functions to consider.
313+
* @param name the name of the function
314+
* @param argumentTypes the types of the arguments that the function must accept.
315+
* @return a matching {@link MethodExecutor}
316316
*/
317317
private Optional<MethodExecutor> getMethodExecutor(EvaluationContextExtensionAdapter adapter, String name,
318318
List<TypeDescriptor> argumentTypes) {
@@ -325,7 +325,7 @@ private Optional<MethodExecutor> getMethodExecutor(EvaluationContextExtensionAda
325325
*
326326
* @param extension must not be {@literal null}.
327327
* @param name must not be {@literal null} or empty.
328-
* @return
328+
* @return a {@link TypedValue} matching the given parameters.
329329
*/
330330
private TypedValue lookupPropertyFrom(EvaluationContextExtensionAdapter extension, String name) {
331331

@@ -420,16 +420,16 @@ public EvaluationContextExtensionAdapter(EvaluationContextExtension extension,
420420
/**
421421
* Returns the extension identifier.
422422
*
423-
* @return
423+
* @return the id of the extension
424424
*/
425-
public String getExtensionId() {
425+
String getExtensionId() {
426426
return extension.getExtensionId();
427427
}
428428

429429
/**
430430
* Returns all functions exposed.
431431
*
432-
* @return
432+
* @return all exposed functions.
433433
*/
434434
Functions getFunctions() {
435435
return this.functions;
@@ -438,7 +438,7 @@ Functions getFunctions() {
438438
/**
439439
* Returns all properties exposed. Note, the value of a property can be a {@link Function} in turn
440440
*
441-
* @return
441+
* @return a map from property name to property value.
442442
*/
443443
public Map<String, Object> getProperties() {
444444
return this.properties;

src/main/java/org/springframework/data/repository/query/Functions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import org.springframework.util.MultiValueMap;
3434

3535
/**
36-
* {@link MultiValueMap} like datastructure to keep lists of
36+
* {@link MultiValueMap} like data structure to keep lists of
3737
* {@link org.springframework.data.repository.query.spi.Function}s indexed by name and argument list length, where the
3838
* value lists are actually unique with respect to the signature.
3939
*

0 commit comments

Comments
 (0)