Merge branch '4.1.x'

Closes gh-51600
This commit is contained in:
Andy Wilkinson
2026-09-07 08:27:14 +01:00
150 changed files with 5 additions and 245 deletions
@@ -54,7 +54,6 @@ import static org.assertj.core.api.Assertions.assertThat;
abstract class AbstractJarModeTests {
@TempDir
@SuppressWarnings("NullAway.Init")
File tempDir;
Manifest createManifest(String... entries) {
@@ -34,7 +34,6 @@ import static org.assertj.core.api.Assertions.assertThatIllegalStateException;
class ContextTests {
@TempDir
@SuppressWarnings("NullAway.Init")
File temp;
@Test
@@ -69,11 +69,9 @@ class ExtractLayersCommandTests {
private static final FileTime LAST_ACCESS_TIME = FileTime.from(NOW.minus(1, ChronoUnit.DAYS));
@TempDir
@SuppressWarnings("NullAway.Init")
File temp;
@Mock
@SuppressWarnings("NullAway.Init")
private Context context;
private File jarFile;
@@ -40,7 +40,6 @@ class HelpCommandTests {
private TestPrintStream out;
@TempDir
@SuppressWarnings("NullAway.Init")
Path temp;
@BeforeEach
@@ -42,7 +42,6 @@ import static org.mockito.Mockito.mock;
class IndexedLayersTests {
@TempDir
@SuppressWarnings("NullAway.Init")
File temp;
@Test
@@ -48,11 +48,9 @@ import static org.mockito.BDDMockito.given;
class ListCommandTests {
@TempDir
@SuppressWarnings("NullAway.Init")
File temp;
@Mock
@SuppressWarnings("NullAway.Init")
private Context context;
private ListCommand command;
@@ -89,7 +89,6 @@ abstract class AbstractPackagerTests<P extends Packager> {
}
@TempDir
@SuppressWarnings("NullAway.Init")
File tempDir;
protected TestJarFile testJarFile;
@@ -39,7 +39,6 @@ import static org.assertj.core.api.Assertions.assertThat;
class FileUtilsTests {
@TempDir
@SuppressWarnings("NullAway.Init")
File tempDir;
private File outputDirectory;