Skip to content

Commit 5ccd067

Browse files
committed
Deprecate DeprecatedAttributes.Builder() in favor of
DeprecatedAttributes.builder()
1 parent 939d383 commit 5ccd067

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<release version="1.9.1" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
2626
<!-- FIX -->
2727
<action type="add" issue="CLI-339" dev="ggregory" due-to="Gary Gregory">Deprecate CommandLine.Builder() in favor of CommandLine.builder().</action>
28+
<action type="add" issue="CLI-339" dev="ggregory" due-to="Gary Gregory">Deprecate DeprecatedAttributes.Builder() in favor of DeprecatedAttributes.builder().</action>
2829
<!-- ADD -->
2930
<action type="add" issue="CLI-339" dev="ggregory" due-to="Claude Warren, Gary Gregory">Help formatter extension in the new package #314.</action>
3031
<action type="add" dev="ggregory" due-to="Gary Gregory">CommandLine.Builder implements Supplier&lt;CommandLine&gt;.</action>

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ public static class Builder implements Supplier<DeprecatedAttributes> {
5555
*/
5656
private String since;
5757

58+
59+
/**
60+
* Constructs a new instance.
61+
*
62+
* @deprecated Use {@link #builder()}.
63+
*/
64+
@Deprecated
65+
public Builder() {
66+
// empty
67+
}
68+
5869
@Override
5970
public DeprecatedAttributes get() {
6071
return new DeprecatedAttributes(description, since, forRemoval);

0 commit comments

Comments
 (0)