Make fields private where possible

This commit is contained in:
Phillip Webb
2014-01-21 16:21:00 -08:00
parent 0160760568
commit 43e54d38f7
169 changed files with 280 additions and 280 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 {