Skip to content

Commit 64cc078

Browse files
committed
Move this enum to the bottom
so it's near ExtensionMapping
1 parent 19e3f53 commit 64cc078

File tree

1 file changed

+10
-10
lines changed
  • modules/ingest-common/src/main/java/org/elasticsearch/ingest/common

1 file changed

+10
-10
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/CefParser.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,6 @@ final class CefParser {
9292
entry("\\\r", "\r")
9393
);
9494

95-
enum DataType {
96-
IntegerType,
97-
LongType,
98-
DoubleType,
99-
StringType,
100-
IPType,
101-
MACAddressType,
102-
TimestampType
103-
}
104-
10595
private static final Map<String, ExtensionMapping> EXTENSION_MAPPINGS = Map.<String, ExtensionMapping>ofEntries(
10696
entry("agt", new ExtensionMapping("agentAddress", IPType, "agent.ip")),
10797
entry("agentDnsDomain", new ExtensionMapping("agentDnsDomain", StringType, "agent.name")),
@@ -604,6 +594,16 @@ public void close() {
604594
}
605595
}
606596

597+
enum DataType {
598+
IntegerType,
599+
LongType,
600+
DoubleType,
601+
StringType,
602+
IPType,
603+
MACAddressType,
604+
TimestampType
605+
}
606+
607607
private record ExtensionMapping(String key, DataType dataType, @Nullable String ecsKey) {
608608
ExtensionMapping {
609609
Objects.requireNonNull(key);

0 commit comments

Comments
 (0)