diff --git a/versions-common/src/main/java/org/codehaus/mojo/versions/utils/SegmentUtils.java b/versions-common/src/main/java/org/codehaus/mojo/versions/utils/SegmentUtils.java index 9de82625de..9c4c53f397 100644 --- a/versions-common/src/main/java/org/codehaus/mojo/versions/utils/SegmentUtils.java +++ b/versions-common/src/main/java/org/codehaus/mojo/versions/utils/SegmentUtils.java @@ -64,11 +64,11 @@ public class SegmentUtils { */ public static Optional determineUnchangedSegment( boolean allowMajorUpdates, boolean allowMinorUpdates, boolean allowIncrementalUpdates, Log log) { - if (log != null && !allowIncrementalUpdates) { + if (log != null && !allowIncrementalUpdates && allowMinorUpdates) { log.info("Assuming allowMinorUpdates false because allowIncrementalUpdates is false."); } - if (log != null && !allowMinorUpdates) { + if (log != null && !allowMinorUpdates && allowMajorUpdates) { log.info("Assuming allowMajorUpdates false because allowMinorUpdates is false."); }