fixed some wrong checkstyle messages

This commit is contained in:
hneemann 2017-03-18 09:00:49 +01:00
parent 1b8c4ceae5
commit 22663d131b
3 changed files with 7 additions and 0 deletions

View File

@ -271,6 +271,8 @@ public class TT2Exporter implements ExpressionExporter<TT2Exporter> {
line("#$ NODES " + nodeNum + node.toString());
}
//StateSet can not be final because its overridden. Maybe checkstyle has a bug?
//CHECKSTYLE.OFF: FinalClass
private static class StateSet implements Comparable<StateSet> {
private final int[] state;
@ -332,6 +334,7 @@ public class TT2Exporter implements ExpressionExporter<TT2Exporter> {
return sb.toString();
}
}
//CHECKSTYLE.ON: FinalClass
private final class ProdInput extends StateSet {
private ProdInput(int inputCount) {

View File

@ -662,6 +662,8 @@ public class CircuitComponent extends JComponent implements Circuit.ChangedListe
}
//MouseController can not be final because its overridden. Maybe checkstyle has a bug?
//CHECKSTYLE.OFF: FinalClass
private class MouseController {
private final Cursor mouseCursor;
@ -706,6 +708,7 @@ public class CircuitComponent extends JComponent implements Circuit.ChangedListe
public void escapePressed() {
}
}
//CHECKSTYLE.ON: FinalClass
private final class MouseControllerNormal extends MouseController {
private Vector pos;

View File

@ -127,6 +127,7 @@ public final class EditorFactory {
}
}
//Checkstyle flags redundant modifiers, which are not redundant. Maybe a bug in checkstyle?
//CHECKSTYLE.OFF: RedundantModifier
private final static class StringEditor extends LabelEditor<String> {