Enable PMD rule SimplifiedTernary and fix violations
This commit is contained in:
parent
a07fc132d2
commit
09a9c1a104
3 changed files with 2 additions and 3 deletions
|
|
@ -309,7 +309,7 @@ public class RoutingEngine extends Thread {
|
|||
}
|
||||
if (hasInfo()) {
|
||||
boolean found = nearbyTrack != null;
|
||||
boolean dirty = found ? nearbyTrack.isDirty : false;
|
||||
boolean dirty = found && nearbyTrack.isDirty;
|
||||
logInfo("read referenceTrack, found=" + found + " dirty=" + dirty + " " + debugInfo);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue