Make fields private where possible
This commit is contained in:
@@ -48,13 +48,13 @@ import org.springframework.boot.cli.util.OutputCapture;
|
||||
*/
|
||||
public class CliTester implements TestRule {
|
||||
|
||||
private OutputCapture outputCapture = new OutputCapture();
|
||||
private final OutputCapture outputCapture = new OutputCapture();
|
||||
|
||||
private long timeout = TimeUnit.MINUTES.toMillis(6);
|
||||
|
||||
private List<AbstractCommand> commands = new ArrayList<AbstractCommand>();
|
||||
private final List<AbstractCommand> commands = new ArrayList<AbstractCommand>();
|
||||
|
||||
private String prefix;
|
||||
private final String prefix;
|
||||
|
||||
public CliTester(String prefix) {
|
||||
this.prefix = prefix;
|
||||
|
||||
@@ -56,7 +56,7 @@ public class CommandRunnerTests {
|
||||
@Mock
|
||||
private Command anotherCommand;
|
||||
|
||||
private Set<Call> calls = EnumSet.noneOf(Call.class);
|
||||
private final Set<Call> calls = EnumSet.noneOf(Call.class);
|
||||
|
||||
private ClassLoader loader;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import static org.junit.Assert.assertThat;
|
||||
*/
|
||||
public class EscapeAwareWhiteSpaceArgumentDelimiterTests {
|
||||
|
||||
private EscapeAwareWhiteSpaceArgumentDelimiter delimiter = new EscapeAwareWhiteSpaceArgumentDelimiter();
|
||||
private final EscapeAwareWhiteSpaceArgumentDelimiter delimiter = new EscapeAwareWhiteSpaceArgumentDelimiter();
|
||||
|
||||
@Test
|
||||
public void simple() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user