Skip to content

Commit b3ca31b

Browse files
committed
Renamed Leniant to Lenient - as noticed by James Ring in #37973
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@376559 13f79535-47bb-0310-9956-ffa450edef68
1 parent f671feb commit b3ca31b

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,25 @@ public void validate(final List values)
182182
}
183183
}
184184

185-
public void setLeniant(final boolean lenient) {
185+
/**
186+
* Sets whether this validator uses lenient parsing.
187+
*
188+
* @param lenient whether this validator uses lenient parsing
189+
*/
190+
public void setLenient(final boolean lenient) {
186191
for (int i = 0; i < this.formats.length; i++) {
187192
this.formats[i].setLenient(lenient);
188193
}
189194

190195
this.isLenient = lenient;
191196
}
192197

193-
public boolean isLeniant() {
198+
/**
199+
* Returns whether this validator uses lenient parsing.
200+
*
201+
* @return whether this validator uses lenient parsing
202+
*/
203+
public boolean isLenient() {
194204
return this.isLenient;
195205
}
196206

@@ -288,7 +298,7 @@ public void setFormats(final List formats) {
288298
*/
289299
public void setFormats(final DateFormat[] formats) {
290300
this.formats = formats;
291-
setLeniant(this.isLenient);
301+
setLenient(this.isLenient);
292302
}
293303

294304
/**

0 commit comments

Comments
 (0)