Skip to content

Commit cc37692

Browse files
committed
Next version is 1.5.0.
1 parent b1b05d2 commit cc37692

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<modelVersion>4.0.0</modelVersion>
2525
<groupId>commons-cli</groupId>
2626
<artifactId>commons-cli</artifactId>
27-
<version>1.5-SNAPSHOT</version>
27+
<version>1.5.0-SNAPSHOT</version>
2828
<name>Apache Commons CLI</name>
2929

3030
<inceptionYear>2002</inceptionYear>
@@ -195,7 +195,7 @@
195195
<maven.compiler.target>1.7</maven.compiler.target>
196196
<commons.componentid>cli</commons.componentid>
197197
<commons.module.name>org.apache.commons.cli</commons.module.name>
198-
<commons.release.version>1.5</commons.release.version>
198+
<commons.release.version>1.5.0</commons.release.version>
199199
<commons.release.name>commons-cli-${commons.release.version}</commons.release.name>
200200
<commons.release.isDistModule>true</commons.release.isDistModule>
201201
<commons.rc.version>RC1</commons.rc.version>

src/changes/changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<title>Apache Commons CLI Release Notes</title>
2121
</properties>
2222
<body>
23-
<release version="1.5" date="tba" description="New features and bug fixes (Java 7)">
23+
<release version="1.5.0" date="tba" description="New features and bug fixes (Java 7)">
2424
<!-- FIX -->
2525
<action type="fix" dev="ggregory" due-to="Gary Gregory">
2626
Fix NPE in DefaultParser.isLongOption(String).

src/main/java/org/apache/commons/cli/CommandLine.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public Object getOptionObject(final String opt) {
167167
*
168168
* @param option name of the option.
169169
* @return The Properties mapped by the option, never {@code null} even if the option doesn't exists.
170-
* @since 1.5
170+
* @since 1.5.0
171171
*/
172172
public Properties getOptionProperties(final Option option) {
173173
final Properties props = new Properties();
@@ -258,7 +258,7 @@ public String getOptionValue(final char opt, final String defaultValue) {
258258
*
259259
* @param option the name of the option.
260260
* @return Value of the argument if option is set, and has an argument, otherwise null.
261-
* @since 1.5
261+
* @since 1.5.0
262262
*/
263263
public String getOptionValue(final Option option) {
264264
if (option == null) {
@@ -274,7 +274,7 @@ public String getOptionValue(final Option option) {
274274
* @param option name of the option.
275275
* @param defaultValue is the default value to be returned if the option is not specified.
276276
* @return Value of the argument if option is set, and has an argument, otherwise {@code defaultValue}.
277-
* @since 1.5
277+
* @since 1.5.0
278278
*/
279279
public String getOptionValue(final Option option, final String defaultValue) {
280280
final String answer = getOptionValue(option);
@@ -317,7 +317,7 @@ public String[] getOptionValues(final char opt) {
317317
*
318318
* @param option string name of the option.
319319
* @return Values of the argument if option is set, and has an argument, otherwise null.
320-
* @since 1.5
320+
* @since 1.5.0
321321
*/
322322
public String[] getOptionValues(final Option option) {
323323
final List<String> values = new ArrayList<>();
@@ -348,7 +348,7 @@ public String[] getOptionValues(final String opt) {
348348
* @return the value parsed into a particular object.
349349
* @throws ParseException if there are problems turning the option value into the desired type
350350
* @see PatternOptionBuilder
351-
* @since 1.5
351+
* @since 1.5.0
352352
*/
353353
public Object getParsedOptionValue(final char opt) throws ParseException {
354354
return getParsedOptionValue(String.valueOf(opt));
@@ -361,7 +361,7 @@ public Object getParsedOptionValue(final char opt) throws ParseException {
361361
* @return the value parsed into a particular object.
362362
* @throws ParseException if there are problems turning the option value into the desired type
363363
* @see PatternOptionBuilder
364-
* @since 1.5
364+
* @since 1.5.0
365365
*/
366366
public Object getParsedOptionValue(final Option option) throws ParseException {
367367
if (option == null) {
@@ -420,7 +420,7 @@ public boolean hasOption(final char opt) {
420420
*
421421
* @param opt the option to check.
422422
* @return true if set, false if not.
423-
* @since 1.5
423+
* @since 1.5.0
424424
*/
425425
public boolean hasOption(final Option opt) {
426426
return options.contains(opt);

src/main/java/org/apache/commons/cli/DefaultParser.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class DefaultParser implements CommandLineParser {
4141
* .build();
4242
* </pre>
4343
*
44-
* @since 1.5
44+
* @since 1.5.0
4545
*/
4646
public static final class Builder {
4747

@@ -64,7 +64,7 @@ private Builder() {
6464
* Builds an DefaultParser with the values declared by this {@link Builder}.
6565
*
6666
* @return the new {@link DefaultParser}
67-
* @since 1.5
67+
* @since 1.5.0
6868
*/
6969
public DefaultParser build() {
7070
return new DefaultParser(allowPartialMatching, stripLeadingAndTrailingQuotes);
@@ -90,7 +90,7 @@ public DefaultParser build() {
9090
*
9191
* @param allowPartialMatching whether to allow partial matching of long options
9292
* @return this builder, to allow method chaining
93-
* @since 1.5
93+
* @since 1.5.0
9494
*/
9595
public Builder setAllowPartialMatching(final boolean allowPartialMatching) {
9696
this.allowPartialMatching = allowPartialMatching;
@@ -110,7 +110,7 @@ public Builder setAllowPartialMatching(final boolean allowPartialMatching) {
110110
*
111111
* @param stripLeadingAndTrailingQuotes whether balanced leading and trailing double quotes should be stripped from option arguments.
112112
* @return this builder, to allow method chaining
113-
* @since 1.5
113+
* @since 1.5.0
114114
*/
115115
public Builder setStripLeadingAndTrailingQuotes(final Boolean stripLeadingAndTrailingQuotes) {
116116
this.stripLeadingAndTrailingQuotes = stripLeadingAndTrailingQuotes;
@@ -123,7 +123,7 @@ public Builder setStripLeadingAndTrailingQuotes(final Boolean stripLeadingAndTra
123123
* methods.
124124
*
125125
* @return a new {@link Builder} instance
126-
* @since 1.5
126+
* @since 1.5.0
127127
*/
128128
public static Builder builder() {
129129
return new Builder();

src/main/java/org/apache/commons/cli/Option.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public Builder numberOfArgs(final int numberOfArgs) {
185185
* @param option the name of the Option
186186
* @return this builder, to allow method chaining
187187
* @throws IllegalArgumentException if there are any non valid Option characters in {@code opt}
188-
* @since 1.5
188+
* @since 1.5.0
189189
*/
190190
public Builder option(String option) throws IllegalArgumentException {
191191
this.option = OptionValidator.validate(option);

0 commit comments

Comments
 (0)