Make fields final
Closes gh-33537
This commit is contained in:
@@ -27,7 +27,7 @@ import java.util.Map;
|
||||
*/
|
||||
class ListCommand extends Command {
|
||||
|
||||
private Context context;
|
||||
private final Context context;
|
||||
|
||||
ListCommand(Context context) {
|
||||
super("list", "List layers from the jar that can be extracted", Options.none(), Parameters.none());
|
||||
|
||||
@@ -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