| @@ -773,7 +773,7 @@ public class Copy extends Task { | |||||
| final FileNameMapper mapper, final Hashtable<String, String[]> map) { | final FileNameMapper mapper, final Hashtable<String, String[]> map) { | ||||
| String[] toCopy = null; | String[] toCopy = null; | ||||
| if (forceOverwrite) { | if (forceOverwrite) { | ||||
| final List<String> v = new ArrayList<String>(); | |||||
| final List<String> v = new ArrayList<>(); | |||||
| for (String name : names) { | for (String name : names) { | ||||
| if (mapper.mapFileName(name) != null) { | if (mapper.mapFileName(name) != null) { | ||||
| v.add(name); | v.add(name); | ||||
| @@ -25,7 +25,6 @@ import java.nio.file.LinkOption; | |||||
| import java.nio.file.attribute.UserPrincipal; | import java.nio.file.attribute.UserPrincipal; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.PropertyHelper; | |||||
| /** | /** | ||||
| * A selector that selects files based on their owner. | * A selector that selects files based on their owner. | ||||
| @@ -19,7 +19,6 @@ | |||||
| package org.apache.tools.ant.types.selectors; | package org.apache.tools.ant.types.selectors; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.PropertyHelper; | |||||
| import java.io.File; | import java.io.File; | ||||
| import java.io.IOException; | import java.io.IOException; | ||||
| @@ -19,7 +19,6 @@ | |||||
| package org.apache.tools.ant.types.selectors; | package org.apache.tools.ant.types.selectors; | ||||
| import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.BuildException; | ||||
| import org.apache.tools.ant.PropertyHelper; | |||||
| import org.apache.tools.ant.util.PermissionUtils; | import org.apache.tools.ant.util.PermissionUtils; | ||||
| import java.io.File; | import java.io.File; | ||||