Browse Source

coding style

master
Stefan Bodewig 5 years ago
parent
commit
43216ae7ef
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      src/main/org/apache/tools/ant/taskdefs/Concat.java

+ 3
- 5
src/main/org/apache/tools/ant/taskdefs/Concat.java View File

@@ -365,12 +365,10 @@ public class Concat extends Task implements ResourceCollection {
private Reader getReader() throws IOException {
if (reader == null && readerSources.hasNext()) {
reader = factory.getReader(readerSources.next());
if(isFixLastLine())
{
if (isFixLastLine()) {
reader = new LastLineFixingReader(reader);
}
if(filterBeforeConcat)
{
if (filterBeforeConcat) {
reader = getFilteredReader(reader);
}
}
@@ -463,7 +461,7 @@ public class Concat extends Task implements ResourceCollection {
return result;
}
Reader resourceReader;
if(filterBeforeConcat) {
if (filterBeforeConcat) {
resourceReader = new MultiReader<>(c.iterator(),
resourceReaderFactory, true);
} else {


Loading…
Cancel
Save