Skip to content

Commit 1d76328

Browse files
committed
Deprecate PatternOptionBuilder.PatternOptionBuilder()
1 parent 824b1bf commit 1d76328

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<action type="fix" dev="ggregory" due-to="Gary Gregory">Javadoc is missing its Overview page.</action>
3434
<action type="fix" dev="ggregory" due-to="Arnout Engelen">Get mockito version from parent pom (#351).</action>
3535
<action type="fix" dev="ggregory" due-to="Gary Gregory">Remove -nouses directive from maven-bundle-plugin. OSGi package imports now state 'uses' definitions for package imports, this doesn't affect JPMS (from org.apache.commons:commons-parent:80).</action>
36+
<action type="fix" dev="ggregory" due-to="Arnout Engelen">Deprecate PatternOptionBuilder.PatternOptionBuilder().</action>
3637
<!-- ADD -->
3738
<action type="add" issue="CLI-339" dev="ggregory" due-to="Claude Warren, Gary Gregory">Help formatter extension in the new package #314.</action>
3839
<action type="add" dev="ggregory" due-to="Gary Gregory">CommandLine.Builder implements Supplier&lt;CommandLine&gt;.</action>

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ Licensed to the Apache Software Foundation (ASF) under one or more
7474
*/
7575
public class PatternOptionBuilder {
7676

77+
/**
78+
* Deprecated, only provides static methods.
79+
*
80+
* @deprecated Will be private or class will be final.
81+
*/
82+
@Deprecated
83+
public PatternOptionBuilder() {
84+
// empty
85+
}
86+
7787
/** String class */
7888
public static final Class<String> STRING_VALUE = String.class;
7989

0 commit comments

Comments
 (0)