diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java index 9ebb1d781d2..16e669d97b2 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java @@ -103,11 +103,7 @@ public abstract class ProcedureManagerHost { } public Set getProcedureManagers() { - Set returnValue = new HashSet<>(); - for (E e: procedures) { - returnValue.add(e); - } - return returnValue; + return new HashSet<>(procedures); } public abstract void loadProcedures(Configuration conf);