Skip to content

Commit a1b1ede

Browse files
committed
Fix Javadoc in DefaultFieldSet and DefaultFieldSetFactory
Resolves #4494
1 parent ad50599 commit a1b1ede

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/DefaultFieldSet.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
import org.springframework.util.StringUtils;
3434

3535
/**
36-
* Default implementation of {@link FieldSet} using Java using Java primitive and standard
37-
* types and utilities. Strings are trimmed before parsing by default, and so are plain
38-
* String values.
36+
* Default implementation of {@link FieldSet} using Java primitive and standard types and
37+
* utilities. Strings are trimmed before parsing by default, and so are plain String
38+
* values.
3939
*
4040
* @author Rob Harrop
4141
* @author Dave Syer
@@ -65,8 +65,8 @@ public class DefaultFieldSet implements FieldSet {
6565
private List<String> names;
6666

6767
/**
68-
* The {@link NumberFormat} to use for parsing numbers. If unset the US locale will be
69-
* used ('.' as decimal place).
68+
* The {@link NumberFormat} to use for parsing numbers. If unset the {@link Locale#US}
69+
* will be used ('.' as decimal place).
7070
* @param numberFormat the {@link NumberFormat} to use for number parsing
7171
*/
7272
public final void setNumberFormat(NumberFormat numberFormat) {
@@ -78,8 +78,8 @@ public final void setNumberFormat(NumberFormat numberFormat) {
7878
}
7979

8080
/**
81-
* The {@link DateFormat} to use for parsing numbers. If unset the default pattern is
82-
* ISO standard <code>yyyy/MM/dd</code>.
81+
* The {@link DateFormat} to use for parsing dates. If unset the default pattern is
82+
* ISO standard <code>yyyy-MM-dd</code>.
8383
* @param dateFormat the {@link DateFormat} to use for date parsing
8484
*/
8585
public void setDateFormat(DateFormat dateFormat) {

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/transform/DefaultFieldSetFactory.java

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2012 the original author or authors.
2+
* Copyright 2009-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
2323
* {@link FieldSet} required. Returns a {@link DefaultFieldSet} from both factory methods.
2424
*
2525
* @author Dave Syer
26+
* @author Mahmoud Ben Hassine
2627
*
2728
*/
2829
public class DefaultFieldSetFactory implements FieldSetFactory {
@@ -32,17 +33,17 @@ public class DefaultFieldSetFactory implements FieldSetFactory {
3233
private NumberFormat numberFormat;
3334

3435
/**
35-
* The {@link NumberFormat} to use for parsing numbers. If unset the default locale
36-
* will be used.
36+
* The {@link NumberFormat} to use for parsing numbers. If unset then
37+
* {@link java.util.Locale#US} will be used.
3738
* @param numberFormat the {@link NumberFormat} to use for number parsing
3839
*/
3940
public void setNumberFormat(NumberFormat numberFormat) {
4041
this.numberFormat = numberFormat;
4142
}
4243

4344
/**
44-
* The {@link DateFormat} to use for parsing numbers. If unset the default pattern is
45-
* ISO standard <code>yyyy/MM/dd</code>.
45+
* The {@link DateFormat} to use for parsing dates. If unset the default pattern is
46+
* ISO standard <code>yyyy-MM-dd</code>.
4647
* @param dateFormat the {@link DateFormat} to use for date parsing
4748
*/
4849
public void setDateFormat(DateFormat dateFormat) {

0 commit comments

Comments
 (0)