Skip to content

Commit 0174e26

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 0fd11f2 commit 0174e26

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,7 @@ public Builder(String name, IndexVersion indexCreatedVersion) {
306306
this(name, null, ScriptCompiler.NONE, Integer.MAX_VALUE, indexCreatedVersion, SourceKeepMode.NONE);
307307
}
308308

309-
public static Builder buildForTemplateId(
310-
String name,
311-
IndexVersion indexCreatedVersion
312-
) {
309+
public static Builder buildForTemplateId(String name, IndexVersion indexCreatedVersion) {
313310
return new Builder(
314311
name,
315312
null,
@@ -514,7 +511,8 @@ private static boolean shouldUseDocValuesSkipper(
514511
final IndexMode indexMode,
515512
final String fullFieldName
516513
) {
517-
return hasDocValues && IndexMode.LOGSDB.equals(indexMode)
514+
return hasDocValues
515+
&& IndexMode.LOGSDB.equals(indexMode)
518516
&& HOST_NAME.equals(fullFieldName)
519517
&& indexSortConfigByHostName(indexSortConfig);
520518
}

x-pack/plugin/logsdb/src/main/java/org/elasticsearch/xpack/logsdb/patternedtext/PatternedTextFieldMapper.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ private PatternedTextFieldType buildFieldType(MapperBuilderContext context) {
9494
public PatternedTextFieldMapper build(MapperBuilderContext context) {
9595
PatternedTextFieldType patternedTextFieldType = buildFieldType(context);
9696
BuilderParams builderParams = builderParams(this, context);
97-
var templateIdMapper = KeywordFieldMapper.Builder
98-
.buildForTemplateId(patternedTextFieldType.templateIdFieldName(), indexCreatedVersion)
99-
.build(context);
97+
var templateIdMapper = KeywordFieldMapper.Builder.buildForTemplateId(
98+
patternedTextFieldType.templateIdFieldName(),
99+
indexCreatedVersion
100+
).build(context);
100101
return new PatternedTextFieldMapper(leafName(), patternedTextFieldType, builderParams, this, templateIdMapper);
101102
}
102103
}

0 commit comments

Comments
 (0)