Skip to content

Commit bfdb19a

Browse files
committed
Fix dataset discovery filter bug
1 parent 9d22dcf commit bfdb19a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swan-pipeline/src/main/java/de/fraunhofer/iem/swan/io/dataset/DatasetProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Dataset run() {
4343

4444
for (Method method : new HashSet<>(dataset.getTrainMethods())) {
4545

46-
if (!options.getDiscovery().contains(method.getDiscovery()) ||
46+
if ((!options.getDiscovery().contains(method.getDiscovery()) && options.getDiscovery().size() > 0) ||
4747
((method.getJavadoc().getMethodComment().length() == 0
4848
|| StringUtils.split(method.getJavadoc().getMethodComment(), " ").size() <= 1) && options.isDocumented())) {
4949
dataset.getTrainMethods().remove(method);

0 commit comments

Comments
 (0)