Skip to content

Commit

Permalink
Fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoop committed Dec 10, 2024
1 parent a2c71a7 commit 4b94b1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ private Set<String> allNodeFeatures() {

/**
* Returns {@code true} if {@code node} can have assumed features.
* @see {@link org.elasticsearch.env.BuildVersion#canRemoveAssumedFeatures}
* @see org.elasticsearch.env.BuildVersion#canRemoveAssumedFeatures
*/
public static boolean featuresCanBeAssumedForNode(DiscoveryNode node) {
return node.getBuildVersion().canRemoveAssumedFeatures();
}

/**
* Returns {@code true} if one or more nodes in {@code nodes} can have assumed features.
* @see {@link org.elasticsearch.env.BuildVersion#canRemoveAssumedFeatures}
* @see org.elasticsearch.env.BuildVersion#canRemoveAssumedFeatures
*/
public static boolean featuresCanBeAssumedForNodes(DiscoveryNodes nodes) {
return nodes.getAllNodes().stream().anyMatch(n -> n.getBuildVersion().canRemoveAssumedFeatures());
Expand Down

0 comments on commit 4b94b1a

Please sign in to comment.