Added check if msLevel == 0. Javadoc indicates this method should return all scans if msLevel = 0. If Javadoc incorrect, this change can be ignored.
@@ -206,7 +206,9 @@ public class RawDataFileImpl implements RawDataFile {
@Override
@NotNull
public List<Scan> getScanNumbers(int msLevel) {
- return scans.stream().filter(s -> s.getMSLevel() == msLevel).collect(Collectors.toList());
+ return msLevel == 0 ?
+ scans.stream().collect(Collectors.toList()) :
+ scans.stream().filter(s -> s.getMSLevel() == msLevel).collect(Collectors.toList());
}
/**
