Add a check for InnerAssignment in checkstyle.xml

master
jvoisin 5 years ago
parent ba9d3ff539
commit 0d6ed81b83
  1. 5
      airsonic-main/src/main/java/org/airsonic/player/controller/HelpController.java
  2. 1
      checkstyle.xml

@ -101,7 +101,10 @@ public class HelpController {
List<String> lines = new ArrayList<>(LOG_LINES_TO_SHOW);
ReversedLinesFileReader reader = new ReversedLinesFileReader(logFile, Charset.defaultCharset());
String current;
while((current = reader.readLine()) != null && lines.size() < LOG_LINES_TO_SHOW) {
while((current = reader.readLine()) != null) {
if (lines.size() >= LOG_LINES_TO_SHOW) {
break;
}
lines.add(0, current);
}
return lines;

@ -26,5 +26,6 @@
<module name="AnnotationLocation"/>
<module name="DefaultComesLast"/>
<module name="EmptyStatement"/>
<module name="InnerAssignment"/>
</module>
</module>

Loading…
Cancel
Save