KAFKA-16797 A bit cleanup of FeatureControlManager (#15997)

Reviewers: Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Ken Huang 2024-05-20 18:19:01 +09:00 committed by GitHub
parent a0ca025f9d
commit 81e6098021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -59,12 +59,12 @@ public class FeatureControlManager {
private ClusterFeatureSupportDescriber clusterSupportDescriber = new ClusterFeatureSupportDescriber() {
@Override
public Iterator<Entry<Integer, Map<String, VersionRange>>> brokerSupported() {
return Collections.<Integer, Map<String, VersionRange>>emptyMap().entrySet().iterator();
return Collections.emptyIterator();
}
@Override
public Iterator<Entry<Integer, Map<String, VersionRange>>> controllerSupported() {
return Collections.<Integer, Map<String, VersionRange>>emptyMap().entrySet().iterator();
return Collections.emptyIterator();
}
};