diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CursorPreparer.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CursorPreparer.java index 659820946..2be9f3376 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CursorPreparer.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CursorPreparer.java @@ -25,7 +25,7 @@ import com.mongodb.DBCursor; interface CursorPreparer { /** - * Prepare the given cursor (apply limits, skips and so on). Returns th eprepared cursor. + * Prepare the given cursor (apply limits, skips and so on). Returns the prepared cursor. * * @param cursor */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoAction.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoAction.java index e1ffbad73..d08179221 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoAction.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoAction.java @@ -49,7 +49,7 @@ public class MongoAction { * @param collectionName the collection name, must not be {@literal null} or empty. * @param entityType the POJO that is being operated against * @param document the converted DBObject from the POJO or Spring Update object - * @param query the converted DBOjbect from the Spring Query object + * @param query the converted DBObject from the Spring Query object */ public MongoAction(WriteConcern defaultWriteConcern, MongoActionOperation mongoActionOperation, String collectionName, Class entityType, DBObject document, DBObject query) { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoDbUtils.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoDbUtils.java index 5ddc7e506..27c7594e7 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoDbUtils.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoDbUtils.java @@ -199,8 +199,8 @@ public abstract class MongoDbUtils { } /** - * Check if credentials present. In case we're using a monog-java-driver version 3 or above we do not have the need - * for authentication as the auth data has to be provied within the MongoClient + * Check if credentials present. In case we're using a mongo-java-driver version 3 or above we do not have the need + * for authentication as the auth data has to be provided within the MongoClient * * @param credentials * @return diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ExposedFields.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ExposedFields.java index 9021626ac..79bece0f8 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ExposedFields.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ExposedFields.java @@ -88,7 +88,7 @@ public final class ExposedFields implements Iterable { } /** - * Creates a new {@link ExposedFields} instance for the given fields in either sythetic or non-synthetic way. + * Creates a new {@link ExposedFields} instance for the given fields in either synthetic or non-synthetic way. * * @param fields must not be {@literal null}. * @param synthetic @@ -107,7 +107,7 @@ public final class ExposedFields implements Iterable { } /** - * Creates a new {@link ExposedFields} with the given orignals and synthetics. + * Creates a new {@link ExposedFields} with the given originals and synthetics. * * @param originals must not be {@literal null}. * @param synthetic must not be {@literal null}. @@ -363,7 +363,7 @@ public final class ExposedFields implements Iterable { } /** - * Returns the referenve value for the given field reference. Will return 1 for a synthetic, unaliased field or the + * Returns the reference value for the given field reference. Will return 1 for a synthetic, unaliased field or the * raw rendering of the reference otherwise. * * @return diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/MongoPersistentEntityIndexResolver.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/MongoPersistentEntityIndexResolver.java index fd7ae50fb..6e66f48be 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/MongoPersistentEntityIndexResolver.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/MongoPersistentEntityIndexResolver.java @@ -260,7 +260,7 @@ public class MongoPersistentEntityIndexResolver implements IndexResolver { LOGGER.info(e.getMessage(), e); } catch (InvalidDataAccessApiUsageException e) { LOGGER.info( - String.format("Potentially invald index structure discovered. Breaking operation for %s.", + String.format("Potentially invalid index structure discovered. Breaking operation for %s.", entity.getName()), e); } } else if (includeOptions.isForce() || indexed != null) { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoPersistentProperty.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoPersistentProperty.java index 80fd2a55d..dc18f162f 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoPersistentProperty.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/MongoPersistentProperty.java @@ -45,7 +45,7 @@ public interface MongoPersistentProperty extends PersistentPropertyText Search Languages. * * @param language diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java index 8b3824bc6..6003ae5fb 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java @@ -64,7 +64,7 @@ public class Update { } /** - * Creates an {@link Update} instance from the given {@link DBObject}. Allows to explicitly exlude fields from making + * Creates an {@link Update} instance from the given {@link DBObject}. Allows to explicitly exclude fields from making * it into the created {@link Update} object. Note, that this will set attributes directly and not use * {@literal $set}. This means fields not given in the {@link DBObject} will be nulled when executing the update. To * create an only-updating {@link Update} instance of a {@link DBObject}, call {@link #set(String, Object)} for each diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/Query.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/Query.java index fa9ed9b32..f79df312c 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/Query.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/Query.java @@ -38,7 +38,7 @@ import org.springframework.data.annotation.QueryAnnotation; public @interface Query { /** - * Takes a MongoDB JSON string to define the actual query to be executed. This one will take precendece over the + * Takes a MongoDB JSON string to define the actual query to be executed. This one will take precedence over the * method name then. * * @return diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/MongoAnnotationProcessor.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/MongoAnnotationProcessor.java index 51c710ace..09006d8ff 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/MongoAnnotationProcessor.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/MongoAnnotationProcessor.java @@ -35,7 +35,7 @@ import com.mysema.query.apt.Configuration; import com.mysema.query.apt.DefaultConfiguration; /** - * Annotation processor to create Querydsl query types for QueryDsl annoated classes. + * Annotation processor to create Querydsl query types for QueryDsl annotated classes. * * @author Oliver Gierke */ diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/Contact.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/Contact.java index bffb9d333..1d15730af 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/Contact.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/Contact.java @@ -20,7 +20,7 @@ import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; /** - * Sample contactt domain class. + * Sample contact domain class. * * @author Oliver Gierke */