Skip to content

Commit

Permalink
Nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Feb 12, 2024
1 parent db91152 commit 50ddacc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.elasticsearch.action.ingest.SimulatePipelineAction;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.util.Maps;
import org.elasticsearch.core.Nullable;
import org.elasticsearch.transport.RemoteClusterService;
import org.elasticsearch.transport.TransportRequest;
import org.elasticsearch.xpack.core.action.XPackInfoAction;
Expand Down Expand Up @@ -430,6 +431,7 @@ public static NamedClusterPrivilege resolve(String name) {

}

@Nullable
public static NamedClusterPrivilege getNamedOrNull(String name) {
return VALUES.get(Objects.requireNonNull(name).toLowerCase(Locale.ROOT));
}
Expand Down

0 comments on commit 50ddacc

Please sign in to comment.