Commit a05a5b3f authored by Andy Wilkinson's avatar Andy Wilkinson

Fix problem reported by Checkstyle

parent 9dc858cd
...@@ -166,11 +166,12 @@ public class FullyExecutableJarTests { ...@@ -166,11 +166,12 @@ public class FullyExecutableJarTests {
private List<String> readLines(File file) throws IOException { private List<String> readLines(File file) throws IOException {
BufferedReader reader = new BufferedReader(new FileReader(file)); BufferedReader reader = new BufferedReader(new FileReader(file));
String line;
List<String> lines = new ArrayList<String>(); List<String> lines = new ArrayList<String>();
try { try {
while ((line = reader.readLine()) != null && lines.size() < 50) { String line = reader.readLine();
while (line != null && lines.size() < 50) {
lines.add(line); lines.add(line);
line = reader.readLine();
} }
} }
finally { finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment