We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In version 2.9.1 this method ends prematurely on the first successful package match
public boolean match(Collection expectedPackages) { if (packages.size() == expectedPackages.size()) { for (Iterator i = expectedPackages.iterator(); i.hasNext();) { Object next = i.next(); if (next instanceof JavaPackage) { JavaPackage nextPackage = (JavaPackage) next; if (!matchPackage(nextPackage)) { return false; } } else { break; } return true; } } return false; }
This version works as expected, letting all packages be matched before returning true
public boolean match(Collection expectedPackages) { if (packages.size() == expectedPackages.size()) { for (Iterator i = expectedPackages.iterator(); i.hasNext();) { Object next = i.next(); if (next instanceof JavaPackage) { JavaPackage nextPackage = (JavaPackage) next; if (!matchPackage(nextPackage)) { return false; } } } return true; } return false; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In version 2.9.1 this method ends prematurely on the first successful package match
This version works as expected, letting all packages be matched before returning true
The text was updated successfully, but these errors were encountered: