Skip to content

Commit 8a1f0cd

Browse files
author
Robert James Oxspring
committed
The number format is now mutable
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@130085 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3d5dd24 commit 8a1f0cd

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/java/org/apache/commons/cli2/validation/NumberValidator.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static NumberValidator getNumberInstance() {
5555
return new NumberValidator(NumberFormat.getNumberInstance());
5656
}
5757

58-
private final NumberFormat format;
58+
private NumberFormat format;
5959
private Number minimum = null;
6060
private Number maximum = null;
6161

@@ -129,4 +129,11 @@ public Number getMinimum() {
129129
public void setMinimum(Number minimum) {
130130
this.minimum = minimum;
131131
}
132+
133+
/**
134+
* @param format The format to set.
135+
*/
136+
public void setFormat(NumberFormat format) {
137+
this.format = format;
138+
}
132139
}

0 commit comments

Comments
 (0)