|
39 | 39 | import java.util.stream.Collectors; |
40 | 40 | import java.util.stream.Stream; |
41 | 41 |
|
| 42 | +import org.apache.commons.io.FileUtils; |
| 43 | +import org.apache.commons.io.IOUtils; |
42 | 44 | import org.slf4j.Logger; |
43 | 45 | import org.slf4j.LoggerFactory; |
44 | | -import org.testcontainers.shaded.org.apache.commons.io.FileUtils; |
45 | | -import org.testcontainers.shaded.org.apache.commons.io.IOUtils; |
46 | 46 |
|
47 | 47 | import software.xdev.testcontainers.imagebuilder.jgit.ignore.FastIgnoreRule; |
48 | 48 | import software.xdev.testcontainers.imagebuilder.jgit.ignore.IgnoreNode; |
@@ -177,7 +177,7 @@ protected static Stream<Path> findFiles( |
177 | 177 | : Files.find(start, maxDepth, matcher, options); |
178 | 178 | } |
179 | 179 |
|
180 | | - @SuppressWarnings("java:S2789") |
| 180 | + @SuppressWarnings({"java:S2789", "OptionalAssignedToNull"}) |
181 | 181 | protected Map.Entry<Path, String> determineFileForTransfer( |
182 | 182 | final IgnoreNode ignoreNode, |
183 | 183 | final Set<String> alwaysIncludedRelativePaths, |
@@ -213,7 +213,7 @@ protected Map.Entry<Path, String> determineFileForTransfer( |
213 | 213 | return outcomeDirs; |
214 | 214 | } |
215 | 215 |
|
216 | | - @SuppressWarnings("java:S2789") |
| 216 | + @SuppressWarnings({"java:S2789", "OptionalAssignedToNull"}) |
217 | 217 | protected Map.Entry<Path, String> determineParentDirectoryForTransfer( |
218 | 218 | final IgnoreNode ignoreNode, |
219 | 219 | final Set<String> alwaysIncludedRelativePaths, |
@@ -261,7 +261,7 @@ protected String parentDirectory(final String dir) |
261 | 261 | : null; |
262 | 262 | } |
263 | 263 |
|
264 | | - @SuppressWarnings("java:S2789") |
| 264 | + @SuppressWarnings({"java:S2789", "OptionalAssignedToNull"}) |
265 | 265 | protected Optional<Map.Entry<Path, String>> shouldIgnore( |
266 | 266 | final IgnoreNode ignoreNode, |
267 | 267 | final Set<String> alwaysIncludedRelativePaths, |
|
0 commit comments