Make fields final
Closes gh-33537
This commit is contained in:
@@ -75,7 +75,7 @@ class ExtractCommandTests {
|
||||
|
||||
private File extract;
|
||||
|
||||
private Layers layers = new TestLayers();
|
||||
private final Layers layers = new TestLayers();
|
||||
|
||||
private ExtractCommand command;
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.util.FileCopyUtils;
|
||||
*/
|
||||
class TestPrintStream extends PrintStream implements AssertProvider<PrintStreamAssert> {
|
||||
|
||||
private Class<? extends Object> testClass;
|
||||
private final Class<? extends Object> testClass;
|
||||
|
||||
TestPrintStream(Object testInstance) {
|
||||
super(new ByteArrayOutputStream());
|
||||
|
||||
Reference in New Issue
Block a user