|
1 | 1 | package io.jenkins.plugins.util; |
2 | 2 |
|
| 3 | +import org.apache.commons.lang3.StringUtils; |
| 4 | +import org.apache.tools.ant.BuildException; |
| 5 | +import org.apache.tools.ant.Project; |
| 6 | +import org.apache.tools.ant.types.FileSet; |
| 7 | +import org.apache.tools.ant.types.selectors.TypeSelector; |
| 8 | +import org.apache.tools.ant.types.selectors.TypeSelector.FileType; |
| 9 | + |
| 10 | +import edu.hm.hafner.util.FilteredLog; |
| 11 | +import edu.hm.hafner.util.VisibleForTesting; |
| 12 | + |
3 | 13 | import java.io.File; |
4 | 14 | import java.io.IOException; |
5 | 15 | import java.io.Serial; |
|
12 | 22 | import java.util.List; |
13 | 23 | import java.util.Optional; |
14 | 24 |
|
15 | | -import org.apache.commons.lang3.StringUtils; |
16 | | -import org.apache.tools.ant.BuildException; |
17 | | -import org.apache.tools.ant.Project; |
18 | | -import org.apache.tools.ant.types.FileSet; |
19 | | -import org.apache.tools.ant.types.selectors.TypeSelector; |
20 | | -import org.apache.tools.ant.types.selectors.TypeSelector.FileType; |
21 | | - |
22 | | -import edu.hm.hafner.util.FilteredLog; |
23 | | -import edu.hm.hafner.util.VisibleForTesting; |
24 | | - |
25 | 25 | import hudson.remoting.VirtualChannel; |
26 | 26 | import jenkins.MasterToSlaveFileCallable; |
27 | 27 |
|
@@ -257,10 +257,10 @@ public String[] find(final File workspace) { |
257 | 257 | */ |
258 | 258 | public static class FileVisitorResult<T extends Serializable> implements Serializable { |
259 | 259 | @Serial |
260 | | - private static final long serialVersionUID = 2122230867938547733L; |
261 | | - |
| 260 | + private static final long serialVersionUID = 5094277468158899325L; |
262 | 261 | private final FilteredLog log; |
263 | | - private final List<T> results; |
| 262 | + @SuppressWarnings("PMD.LooseCoupling") |
| 263 | + private final ArrayList<T> results; |
264 | 264 |
|
265 | 265 | FileVisitorResult(final FilteredLog log) { |
266 | 266 | this(log, Collections.emptyList()); |
|
0 commit comments