Skip to content

Commit

Permalink
Polish gh-1
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniycheban committed Aug 3, 2022
1 parent cdbe6c0 commit f81c424
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public final class ReindexerQueryMethod extends QueryMethod {
public ReindexerQueryMethod(Method method, RepositoryMetadata metadata, ProjectionFactory factory) {
super(method, metadata, factory);
this.isIteratorQuery = Lazy.of(() -> Iterator.class.isAssignableFrom(getReturnedObjectType()));
this.isOptionalQuery = Lazy.of(() -> Optional.class.isAssignableFrom(getReturnedObjectType()));
this.isListQuery = Lazy.of(() -> List.class.isAssignableFrom(getReturnedObjectType()));
this.isSetQuery = Lazy.of(() -> Set.class.isAssignableFrom(getReturnedObjectType()));
this.isOptionalQuery = Lazy.of(() -> Optional.class.isAssignableFrom(method.getReturnType()));
this.isListQuery = Lazy.of(() -> List.class.isAssignableFrom(method.getReturnType()));
this.isSetQuery = Lazy.of(() -> Set.class.isAssignableFrom(method.getReturnType()));
this.queryAnnotationExtractor = Lazy.of(() -> method.getAnnotation(Query.class));
}

Expand Down

0 comments on commit f81c424

Please sign in to comment.