Fix SAT warnings (#14202)
* Fix SAT warnings - checkstyle.ModifierOrderCheck - checkstyle.OneStatementPerLineCheck - checkstyle.NeedBracesCheck - PMD.UseStandardCharsets - PMD.UseCollectionIsEmpty - PMD.UnusedLocalVariable - PMD.SimplifyBooleanReturns where reasonable, suppress where readability is better without change - PMD.SimplifyBooleanExpressions * Include StandardCharsets Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -40,12 +40,8 @@ public class A5_11_03 extends _4BSMessage {
|
||||
|
||||
int state = (db1 >> 4) & 0x03;
|
||||
|
||||
if (state != 0) {
|
||||
// TODO: display error state on thing
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
// TODO: display error state on thing
|
||||
return state != 0;
|
||||
}
|
||||
|
||||
protected State getPositionData() {
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ESP3PacketFactory {
|
||||
new byte[] { SAMessageType.SA_WR_LEARNMODE.getValue(), (byte) (activate ? 1 : 0), 0, 0, 0, 0, 0 });
|
||||
}
|
||||
|
||||
public final static BasePacket SA_RD_LEARNEDCLIENTS = new SAMessage(SAMessageType.SA_RD_LEARNEDCLIENTS);
|
||||
public static final BasePacket SA_RD_LEARNEDCLIENTS = new SAMessage(SAMessageType.SA_RD_LEARNEDCLIENTS);
|
||||
|
||||
public static BasePacket SA_RD_MAILBOX_STATUS(byte[] clientId, byte[] controllerId) {
|
||||
return new SAMessage(SAMessageType.SA_RD_MAILBOX_STATUS,
|
||||
|
||||
Reference in New Issue
Block a user