Skip to content

Commit 5ce0810

Browse files
committed
improve naming
1 parent 7715c83 commit 5ce0810

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/framework/src/main/java/org/elasticsearch/datageneration/datasource/MultifieldAddonHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import java.util.List;
1616
import java.util.Map;
17-
import java.util.Set;
1817
import java.util.stream.Collectors;
1918

2019
public class MultifieldAddonHandler implements DataSourceHandler {
@@ -30,7 +29,7 @@ public class MultifieldAddonHandler implements DataSourceHandler {
3029
FieldType.MATCH_ONLY_TEXT,
3130
FieldType.WILDCARD
3231
);
33-
public static MultifieldAddonHandler ALL_STRING_TYPES = new MultifieldAddonHandler(
32+
public static MultifieldAddonHandler STRING_TYPE_HANDLER = new MultifieldAddonHandler(
3433
STRING_TYPES.stream().collect(Collectors.toMap(t -> t, t -> STRING_TYPES.stream().filter(s -> s != t).toList()))
3534
);
3635

x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/qa/DataGenerationHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public DataSourceResponse.FieldTypeGenerator.FieldTypeInfo get() {
107107
});
108108
}
109109
}))
110-
.withDataSourceHandlers(List.of(MultifieldAddonHandler.ALL_STRING_TYPES));
110+
.withDataSourceHandlers(List.of(MultifieldAddonHandler.STRING_TYPE_HANDLER));
111111

112112
// Customize builder if necessary
113113
builderConfigurator.accept(specificationBuilder);

0 commit comments

Comments
 (0)