diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryMethod.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryMethod.java index 426e393d8c..1d01c877b9 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryMethod.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryMethod.java @@ -329,7 +329,7 @@ public boolean hasAnnotatedReadPreference() { /** * Get the {@link com.mongodb.ReadPreference} extracted from the {@link ReadPreference} annotation. * - * @return the name of the {@link ReadPreference()}. + * @return the name of the {@link ReadPreference}. * @throws IllegalStateException if method not annotated with {@link Query}. Make sure to check * {@link #hasAnnotatedReadPreference()} first. * @since 4.2