Skip to content

Commit cc6b404

Browse files
author
John Keyes
committed
- use setter rather than access field directly
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@191224 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8bd594f commit cc6b404

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ private boolean isDateEarlier(Date date) {
217217
* the format to use
218218
*/
219219
public void setFormat(final DateFormat format) {
220-
formats = new DateFormat[]{format};
220+
setFormats(new DateFormat[]{format});
221221
}
222222

223223
/**

0 commit comments

Comments
 (0)