diff options
author | Johan Raedemaeker <[email protected]> | 2012-09-11 11:45:21 +0200 |
---|---|---|
committer | Johan Raedemaeker <[email protected]> | 2012-09-11 11:45:21 +0200 |
commit | 5888327fab3ed2b7e39b93a70fd0a8ba30a83e20 (patch) | |
tree | 852d69f176014ffe674f54fd6cdc1647faccfe44 /enforcer-rule/src/main/java/org/semver | |
parent | 0f9ce1b3aa3564ce1ffcf7bc1fffacdc8251c785 (diff) |
Fixed bug iterating the wrong list in filterNonPreviousVersions
Diffstat (limited to 'enforcer-rule/src/main/java/org/semver')
-rwxr-xr-x | enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java b/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java index 7394e25..2faafb2 100755 --- a/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java +++ b/enforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java @@ -190,7 +190,7 @@ public abstract class AbstractEnforcerRule implements EnforcerRule { protected final List<ArtifactVersion> filterNonPreviousVersions(final List<ArtifactVersion> availableVersions, final Version version) { final List<ArtifactVersion> versions = new ArrayList<ArtifactVersion>(); - for (final ArtifactVersion artifactVersion : versions) { + for (final ArtifactVersion artifactVersion : availableVersions) { if (version.compareTo(Version.parse(artifactVersion.toString())) > 0) { versions.add(artifactVersion); } |