Skip to content

Commit 8699a2d

Browse files
committed
Make this static and mark things as nullable
1 parent 2ba5963 commit 8699a2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import org.apache.http.conn.util.PublicSuffixMatcher;
1313
import org.apache.http.conn.util.PublicSuffixMatcherLoader;
14+
import org.elasticsearch.core.Nullable;
1415
import org.elasticsearch.ingest.AbstractProcessor;
1516
import org.elasticsearch.ingest.ConfigurationUtils;
1617
import org.elasticsearch.ingest.IngestDocument;
@@ -81,7 +82,8 @@ public IngestDocument execute(IngestDocument document) throws Exception {
8182
return document;
8283
}
8384

84-
private DomainInfo getRegisteredDomain(String fqdn) {
85+
@Nullable
86+
private static DomainInfo getRegisteredDomain(@Nullable String fqdn) {
8587
if (fqdn == null) {
8688
return null;
8789
}

0 commit comments

Comments
 (0)