Skip to content

Unnecessary apache commons-io dependency in spring-batch-test module [BATCH-2698] #909

@spring-projects-issues

Description

@spring-projects-issues

Mahmoud Ben Hassine opened BATCH-2698 and commented

The only usage of apache commons io library in spring-batch-test module is in DataSourceInitializer:

scripts = StringUtils.delimitedListToStringArray(stripComments(IOUtils.readLines(scriptResource
							.getInputStream(), "UTF-8")), ";");

Now that v4 is based on Java 8, IOUtils.readLines can be replaced with Files.lines and the dependency to commons io can be removed.


Affects: 4.0.1

Referenced from: pull request #587, and commits 305b4b8, f552607

Backported to: 4.1.0.M3, 4.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions