aboutsummaryrefslogtreecommitdiffstats
path: root/enforcer-rule/src/main/java/org/semver
diff options
context:
space:
mode:
Diffstat (limited to 'enforcer-rule/src/main/java/org/semver')
-rwxr-xr-xenforcer-rule/src/main/java/org/semver/enforcer/AbstractEnforcerRule.java2
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);
}