RESOLVED - BATCH-741: DefaultFieldSet should clone the tokens before exposing them in getValues()
This commit is contained in:
@@ -84,7 +84,7 @@ public class DefaultFieldSet implements FieldSet {
|
||||
* @see org.springframework.batch.io.file.mapping.IFieldSet#getValues()
|
||||
*/
|
||||
public String[] getValues() {
|
||||
return tokens;
|
||||
return (String[]) tokens.clone();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user