summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-10-16 09:57:48 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2017-10-16 09:57:48 +0200
commitba9fe4df8dfd75ccaafab6888fb67bff9999ce92 (patch)
tree8719d7b00d6bd682886909dddb666040dc7cc81f /container-search
parenta6981a543d675b23871b33cfd17aafefbe824270 (diff)
Nonfunctional changes only
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/search/searchers/InputCheckingSearcher.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/searchers/InputCheckingSearcher.java b/container-search/src/main/java/com/yahoo/search/searchers/InputCheckingSearcher.java
index ed1af514e88..018f4fc7aa9 100644
--- a/container-search/src/main/java/com/yahoo/search/searchers/InputCheckingSearcher.java
+++ b/container-search/src/main/java/com/yahoo/search/searchers/InputCheckingSearcher.java
@@ -161,7 +161,7 @@ public class InputCheckingSearcher extends Searcher {
}
asOctets.flip();
CharsetDecoder decoder = StandardCharsets.UTF_8.newDecoder().onMalformedInput(CodingErrorAction.REPORT)
- .onUnmappableCharacter(CodingErrorAction.REPORT);
+ .onUnmappableCharacter(CodingErrorAction.REPORT);
// OK, unmappable character is sort of theoretical, but added to be explicit
try {
decoder.decode(asOctets);
@@ -170,7 +170,7 @@ public class InputCheckingSearcher extends Searcher {
}
utfRejections.add();
throw new IllegalArgumentException("The user input has been determined to be double encoded UTF-8."
- + " Please investigate whether this is a false positive.");
+ + " Please investigate whether this is a false positive.");
}
private int countSingleCharacterUserTerms(Item queryItem) {
@@ -188,4 +188,5 @@ public class InputCheckingSearcher extends Searcher {
return 0;
}
}
+
}