Skip to content

Commit 8284cbd

Browse files
committed
fix: Javadoc errors
1 parent 798b30d commit 8284cbd

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

graphql-jpa-query-schema/src/main/java/com/introproventures/graphql/jpa/query/schema/GraphQLExecutor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public interface GraphQLExecutor {
3939
* Execute GraphQL query provided in query argument and variables
4040
*
4141
* @param query GraphQL query string
42+
* @param arguments GraphQL arguments key/value mapo
4243
* @return GraphQL ExecutionResult
4344
*/
4445
ExecutionResult execute(String query, Map<String, Object> arguments);

graphql-jpa-query-schema/src/main/java/com/introproventures/graphql/jpa/query/schema/impl/EntityIntrospector.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public Collection<AttributePropertyDescriptor> getIgnoredPropertyDescriptors() {
124124
/**
125125
* Test if entity property is annotated with GraphQLIgnore
126126
*
127-
* @param entity a Java entity class to introspect
128127
* @param propertyName the name of the property
129128
* @return true if property has GraphQLIgnore annotation
130129
* @throws NoSuchElementException if property does not exists
@@ -137,7 +136,6 @@ public Boolean isIgnored(String propertyName) {
137136
/**
138137
* Test if entity property is not ignored
139138
*
140-
* @param entity a Java entity class to introspect
141139
* @param propertyName the name of the property
142140
* @return true if property has no GraphQLIgnore annotation
143141
* @throws NoSuchElementException if property does not exists
@@ -166,7 +164,6 @@ public boolean hasPropertyDescriptor(String fieldName) {
166164
/**
167165
* Test if Java bean property is transient according to JPA specification
168166
*
169-
* @param entity a Java entity class to introspect
170167
* @param propertyName the name of the property
171168
* @return true if property has Transient annotation or transient field modifier
172169
* @throws NoSuchElementException if property does not exists
@@ -179,7 +176,6 @@ public Boolean isTransient(String propertyName) {
179176
/**
180177
* Test if Java bean property is persistent according to JPA specification
181178
*
182-
* @param entity a Java entity class to introspect
183179
* @param propertyName the name of the property
184180
* @return true if property is persitent
185181
* @throws NoSuchElementException if property does not exists
@@ -369,16 +365,23 @@ public String toString() {
369365
return "EntityIntrospectionResult [beanInfo=" + classDescriptor + "]";
370366
}
371367
}
372-
368+
373369
/**
374370
* The following method is borrowed from Streams.iterate,
375371
* however Streams.iterate is designed to create infinite streams.
376372
*
377373
* This version has been modified to end when Optional.empty()
378374
* is returned from the fetchNextFunction.
375+
376+
* @param <T> the type of stream elements
377+
* @param seed the initial element
378+
* @param f a function to be applied to the previous element to produce
379+
* a new element
380+
* @return a new sequential {@code Stream}
381+
*
379382
*/
380-
public static <T> Stream<T> iterate(T seed, Function<T,Optional<T>> fetchNextFunction) {
381-
Objects.requireNonNull(fetchNextFunction);
383+
public static <T> Stream<T> iterate(T seed, Function<T,Optional<T>> f) {
384+
Objects.requireNonNull(f);
382385

383386
Iterator<T> iterator = new Iterator<T>() {
384387
private Optional<T> t = Optional.ofNullable(seed);
@@ -392,7 +395,7 @@ public boolean hasNext() {
392395
public T next() {
393396
T v = t.get();
394397

395-
t = fetchNextFunction.apply(v);
398+
t = f.apply(v);
396399

397400
return v;
398401
}

0 commit comments

Comments
 (0)