aboutsummaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-01-24 14:21:20 +0100
committerJon Bratseth <bratseth@oath.com>2018-01-24 14:21:20 +0100
commit4ed1be4db87b4aa584f80055dd8e5931e6c05f4e (patch)
tree1fd18960a0c97c30a5ebab2acf7c9147af2771ec /config-model
parent0395c5bfbdfe4ef945f1a9592b88d3d10cd84ec5 (diff)
Nonfunctional changes only
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/processing/SetLanguage.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/processing/SetLanguage.java b/config-model/src/main/java/com/yahoo/searchdefinition/processing/SetLanguage.java
index 5b872e9db5e..38c1d1a94d3 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/processing/SetLanguage.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/processing/SetLanguage.java
@@ -15,7 +15,7 @@ import java.util.List;
/**
* Check that no text field appears before a field that sets language.
*
- * @author <a href="mailto:gunnarga@yahoo-inc.com">Gunnar Gauslaa Bergem</a>
+ * @author Gunnar Gauslaa Bergem
*/
public class SetLanguage extends Processor {
@@ -32,13 +32,12 @@ public class SetLanguage extends Processor {
textFieldsWithoutLanguage.add(field.getName());
}
if (field.containsExpression(SetLanguageExpression.class) && !textFieldsWithoutLanguage.isEmpty()) {
- StringBuffer fieldString = new StringBuffer();
+ StringBuilder fieldString = new StringBuilder();
for (String fieldName : textFieldsWithoutLanguage) {
fieldString.append(fieldName).append(" ");
}
warn(search, field, "Field '" + field.getName() + "' sets the language for this document, " +
- "and should be defined as the first field in the searchdefinition. If you have both header and body fields, this field "+
- "should be header, if you require it to affect subsequent header fields and/or any body fields. " +
+ "and should be defined as the first field in the searchdefinition." +
"Preceding text fields that will not have their language set: " +
fieldString.toString() +
" (This warning is omitted for any subsequent fields that also do set_language.)");