diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Field.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Field.java index 55dc016d0..178fd2266 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Field.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Field.java @@ -38,7 +38,7 @@ public class Field { private final Map criteria = new HashMap(); private final Map slices = new HashMap(); private final Map elemMatchs = new HashMap(); - private @Nullable String postionKey; + private @Nullable String positionKey; private int positionValue; public Field include(String key) { @@ -78,7 +78,7 @@ public class Field { Assert.hasText(field, "DocumentField must not be null or empty!"); - postionKey = field; + positionKey = field; positionValue = value; return this; @@ -97,8 +97,8 @@ public class Field { document.put(entry.getKey(), new Document("$elemMatch", entry.getValue().getCriteriaObject())); } - if (postionKey != null) { - document.put(postionKey + ".$", positionValue); + if (positionKey != null) { + document.put(positionKey + ".$", positionValue); } return document;