Skip to content

Commit dc20485

Browse files
Fix code styles by running spotlessApply
1 parent cfbc1f7 commit dc20485

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

server/src/main/java/org/elasticsearch/index/mapper/ObjectMapper.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public class ObjectMapper extends Mapper {
5050
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(ObjectMapper.class);
5151
public static final FeatureFlag SUB_OBJECTS_AUTO_FEATURE_FLAG = new FeatureFlag("sub_objects_auto");
5252
static final NodeFeature SUBOBJECTS_FALSE_MAPPING_UPDATE_FIX = new NodeFeature("mapper.subobjects_false_mapping_update_fix");
53-
static final NodeFeature UKNOWN_FIELD_MAPPING_UPDATE_ERROR_MESSAGE = new NodeFeature("mapper.unknown_field_mapping_update_error_message");
53+
static final NodeFeature UKNOWN_FIELD_MAPPING_UPDATE_ERROR_MESSAGE = new NodeFeature(
54+
"mapper.unknown_field_mapping_update_error_message"
55+
);
5456

5557
public static final String CONTENT_TYPE = "object";
5658
static final String STORE_ARRAY_SOURCE_PARAM = "store_array_source";
@@ -398,9 +400,13 @@ protected static void parseProperties(Builder objBuilder, Map<String, Object> pr
398400
Mapper.TypeParser typeParser = parserContext.typeParser(type);
399401
if (typeParser == null) {
400402
throw new MapperParsingException(
401-
"The mapper type [" + type + "] declared on field [" + fieldName + "] does not exist."
402-
+ " It might have been created within a future version or requires a plugin to be installed."
403-
+ " Check the documentation."
403+
"The mapper type ["
404+
+ type
405+
+ "] declared on field ["
406+
+ fieldName
407+
+ "] does not exist."
408+
+ " It might have been created within a future version or requires a plugin to be installed."
409+
+ " Check the documentation."
404410
);
405411
}
406412
Mapper.Builder fieldBuilder;

server/src/main/java/org/elasticsearch/index/mapper/RuntimeField.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,13 @@ static Map<String, RuntimeField> parseRuntimeFields(
180180
Parser typeParser = parserContext.runtimeFieldParser(type);
181181
if (typeParser == null) {
182182
throw new MapperParsingException(
183-
"The mapper type [" + type + "] declared on field [" + fieldName + "] does not exist."
184-
+ " It might have been created within a future version or requires a plugin to be installed."
185-
+ " Check the documentation."
183+
"The mapper type ["
184+
+ type
185+
+ "] declared on field ["
186+
+ fieldName
187+
+ "] does not exist."
188+
+ " It might have been created within a future version or requires a plugin to be installed."
189+
+ " Check the documentation."
186190
);
187191
}
188192
runtimeFields.put(fieldName, builder.apply(typeParser.parse(fieldName, propNode, parserContext)));

server/src/main/java/org/elasticsearch/index/mapper/TypeParsers.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,13 @@ public static boolean parseMultiField(
162162
Mapper.TypeParser typeParser = parserContext.typeParser(type);
163163
if (typeParser == null) {
164164
throw new MapperParsingException(
165-
"The mapper type [" + type + "] declared on field [" + multiFieldName + "] does not exist."
166-
+ " It might have been created within a future version or requires a plugin to be installed."
167-
+ " Check the documentation."
165+
"The mapper type ["
166+
+ type
167+
+ "] declared on field ["
168+
+ multiFieldName
169+
+ "] does not exist."
170+
+ " It might have been created within a future version or requires a plugin to be installed."
171+
+ " Check the documentation."
168172
);
169173
}
170174
if (typeParser instanceof FieldMapper.TypeParser == false) {

0 commit comments

Comments
 (0)