mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Add more checkstyle tests
- Lines containing tab(s) after space - Usage of printStackTrace - Usage of println - Add SupressionCommentFilter module SuppressionCommentFilter can be enabled with // CHECKSTYLE:OFF and disabled with // CHECKSTYLE:ON
This commit is contained in:
parent
4f64bb1036
commit
b2221d5483
59 changed files with 382 additions and 202 deletions
|
@ -289,8 +289,10 @@ public class EnhancedDebugger implements SmackDebugger {
|
|||
new DefaultTableModel(
|
||||
new Object[]{"Hide", "Timestamp", "", "", "Message", "Id", "Type", "To", "From"},
|
||||
0) {
|
||||
// CHECKSTYLE:OFF
|
||||
private static final long serialVersionUID = 8136121224474217264L;
|
||||
public boolean isCellEditable(int rowIndex, int mColIndex) {
|
||||
// CHECKSTYLE:ON
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -583,7 +585,7 @@ public class EnhancedDebugger implements SmackDebugger {
|
|||
connection.sendStanza(packetToSend);
|
||||
}
|
||||
catch (InterruptedException | NotConnectedException e1) {
|
||||
e1.printStackTrace();
|
||||
LOGGER.log(Level.WARNING, "exception", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -704,8 +706,10 @@ public class EnhancedDebugger implements SmackDebugger {
|
|||
new DefaultTableModel(new Object[][]{{"IQ", 0, 0}, {"Message", 0, 0},
|
||||
{"Presence", 0, 0}, {"Other", 0, 0}, {"Total", 0, 0}},
|
||||
new Object[]{"Type", "Received", "Sent"}) {
|
||||
// CHECKSTYLE:OFF
|
||||
private static final long serialVersionUID = -6793886085109589269L;
|
||||
public boolean isCellEditable(int rowIndex, int mColIndex) {
|
||||
// CHECKSTYLE:ON
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue