Closed CarlosHorro closed 5 years ago
Is it an option to simply revert to not using the streams for this particular method?
As this is what we used to do (https://github.com/compomics/compomics-utilities/blob/master/src/main/java/com/compomics/software/cli/CommandParameter.java) and I think this worked fine?
Yes, it seems old implementation works fine, so I've reused it and it's already pushed.
Some days ago I had a problem when trying to set IdentificationParametersCLI with
-specificy "0,1"
(ie: with more than 1 value) I though it was something just happening to -specificity param, but I've checked that it also happened with params as-fi "a,b"
or-ri "y,z"
When executing in the command line there was no message shown, the app just stopped without any result or message. I've fixed this problem (already pushed), but I still see that it occurs now when the value provided is not among the valid ones and the code manages the stream here:
When debugging in Netbeans we can see this:
It makes sense that the stream can be used just once (there, seems to be used twice, with anyMatch and building the errorMessage) , but still the error happens when removing