diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java b/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java index 1ae90e18c5..d307d04e47 100644 --- a/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java +++ b/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java @@ -124,7 +124,7 @@ else if ( x > y ) return 1; } } - if ( !rangeValue.isClosed() ) + if ( !rangeValue.closed ) { return isLeft ? -1 : 1; } @@ -182,22 +182,12 @@ private static class RangeValue { private String value; - private boolean isClosed; + private boolean closed; - RangeValue( String value, boolean isClosed ) + RangeValue( String value, boolean closed ) { this.value = value.trim(); - this.isClosed = isClosed; - } - - public String getValue() - { - return value; - } - - public boolean isClosed() - { - return isClosed; + this.closed = closed; } public String toString()