X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FMigrationTools%2Forg%2Ftianocore%2Fmigration%2FCommon.java;h=fb89dcae4dfa452e65d43b2e05ade852a577caca;hp=19f64f7e512ea5dc874bc73714e755eff8f8340b;hb=16b7eeef5489a5e16da1574c13df53990ffac2cf;hpb=78b5fb82653276a1f8726ff2557854fc692c8f28 diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/Common.java b/Tools/Source/MigrationTools/org/tianocore/migration/Common.java index 19f64f7e51..fb89dcae4d 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/Common.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/Common.java @@ -142,8 +142,15 @@ public final class Common { } } } + + public static final void toDoAll(Set set, ForDoAll fda) throws Exception { + Iterator di = set.iterator(); + while (di.hasNext()) { + fda.run(di.next()); + } + } - public static void toDoAll(String path, ForDoAll fda, int type) throws Exception { // filter of file type can be done in toDo + public static final void toDoAll(String path, ForDoAll fda, int type) throws Exception { // filter of file type can be done in toDo String[] list = new File(path).list(); File test;