public Version nextMinor(String newPrelease) {
        require(newPrelease != null, "newPreRelease is null");
        final String[] preReleaseParts = parsePreRelease(newPrelease);
        return new Version(this.major, this.minor + 1, 0, preReleaseParts, EMPTY_ARRAY);
    }
public Version nextMinor ( String newPrelease ) { require ( newPrelease != null , "newPreRelease is null" ) ; final String [ ] preReleaseParts = parsePreRelease ( newPrelease ) ; return new Version ( this . major , this . minor + 1 , 0 , preReleaseParts , EMPTY_ARRAY ) ; }
Given this version, returns the next minor version. That is, the major part remains
the same and the minor version is incremented. The pre-release part will be set to
the given identifier and the build-meta-data is dropped.

@param newPrelease The pre-release part for the resulting Version.
@return The incremented version.
@throws VersionFormatException If the given String is not a valid pre-release
identifier.
@throws IllegalArgumentException If newPreRelease is null.
@see #nextMinor()
@see #nextMinor(String[])
@since 1.2.0