Skip to content

Commit

Permalink
removed duplicated method
Browse files Browse the repository at this point in the history
  • Loading branch information
coemgen1992 committed Nov 28, 2024
1 parent 33a562e commit bad5693
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/java/at/jku/cps/travart/core/helpers/TraVarTUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
Expand Down Expand Up @@ -1394,15 +1392,4 @@ public static Logger getSimpleLogger(final String className, final String logFil
logger.addHandler(fh);
return logger;
}

/**
* Gets the list of paths in the path which matches the file extension
*
* @param path the path where we need the list of files
* @param extension the file extension
*/
public static Set<Path> getPathSet(final Path path, final String extension) throws IOException {
return Files.walk(path).filter(Files::isRegularFile).filter(f -> f.getFileName().toString().endsWith(extension))
.collect(Collectors.toSet());
}
}

0 comments on commit bad5693

Please sign in to comment.