Browse Source

Fix problem reported by Checkstyle

pull/4854/merge
Andy Wilkinson 10 years ago
parent
commit
a05a5b3f1c
  1. 5
      spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/FullyExecutableJarTests.java

5
spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/FullyExecutableJarTests.java

@ -166,11 +166,12 @@ public class FullyExecutableJarTests { @@ -166,11 +166,12 @@ public class FullyExecutableJarTests {
private List<String> readLines(File file) throws IOException {
BufferedReader reader = new BufferedReader(new FileReader(file));
String line;
List<String> lines = new ArrayList<String>();
try {
while ((line = reader.readLine()) != null && lines.size() < 50) {
String line = reader.readLine();
while (line != null && lines.size() < 50) {
lines.add(line);
line = reader.readLine();
}
}
finally {

Loading…
Cancel
Save