Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d23497b

Browse files
wudok70mminella
authored andcommitted
fix assert message in PatternMatchingCompositeLineMapper.java
per BATCH-2427, changed assertion message to say "The 'patternMatcher' property must be non-null"
1 parent 286122d commit d23497b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/mapping/PatternMatchingCompositeLineMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public T mapLine(String line, int lineNumber) throws Exception {
7171
@Override
7272
public void afterPropertiesSet() throws Exception {
7373
this.tokenizer.afterPropertiesSet();
74-
Assert.isTrue(this.patternMatcher != null, "The 'fieldSetMappers' property must be non-empty");
74+
Assert.isTrue(this.patternMatcher != null, "The 'patternMatcher' property must be non-null");
7575
}
7676

7777
public void setTokenizers(Map<String, LineTokenizer> tokenizers) {

0 commit comments

Comments
 (0)