diff --git a/src/main/java/sirius/db/mixing/query/QueryCompiler.java b/src/main/java/sirius/db/mixing/query/QueryCompiler.java index d05406ca..b0836940 100644 --- a/src/main/java/sirius/db/mixing/query/QueryCompiler.java +++ b/src/main/java/sirius/db/mixing/query/QueryCompiler.java @@ -260,8 +260,7 @@ private C parseExpression() { skipWhitespace(); if ((reader.current().is('!') || reader.current().is('-'))) { - if (reader.next().isWhitespace() ||reader.next() - .isEndOfInput()) { + if (reader.next().isWhitespace() || reader.next().isEndOfInput()) { // If there is a single "-" or "!" in a string like "foo - bar", we simly skip the dash // as it is ignored by the indexing tokenizer anyway... reader.consume(); diff --git a/src/main/java/sirius/db/mixing/query/QueryField.java b/src/main/java/sirius/db/mixing/query/QueryField.java index 3fc7a376..5e0c6e66 100644 --- a/src/main/java/sirius/db/mixing/query/QueryField.java +++ b/src/main/java/sirius/db/mixing/query/QueryField.java @@ -24,8 +24,8 @@ public enum Mode { EQUAL, LIKE, PREFIX, CONTAINS } - private Mapping field; - private Mode mode; + private final Mapping field; + private final Mode mode; private QueryField(Mapping field, Mode mode) { this.field = field; diff --git a/src/main/java/sirius/db/mongo/constraints/MongoQueryCompiler.java b/src/main/java/sirius/db/mongo/constraints/MongoQueryCompiler.java index a96bff8f..d1418203 100644 --- a/src/main/java/sirius/db/mongo/constraints/MongoQueryCompiler.java +++ b/src/main/java/sirius/db/mongo/constraints/MongoQueryCompiler.java @@ -31,7 +31,7 @@ public class MongoQueryCompiler extends QueryCompiler { private static final Mapping FULLTEXT_MAPPING = Mapping.named("$text"); /** - * Represents an artificial field which generates a search using a $text filter. Therefore + * Represents an artificial field which generates a search using a $text filter. Therefore, * an appropriate text index has to be present. */ public static final QueryField FULLTEXT = QueryField.contains(FULLTEXT_MAPPING);