[cleanup] erefactor/EclipseJdt - Invert equals arguments if parameter is constant string

EclipseJdt cleanup 'InvertEquals' applied by erefactor.

For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php
For erefactor see https://github.com/cal101/erefactor
This commit is contained in:
cal101
2021-06-06 13:37:57 +00:00
parent c402d7cbc2
commit 86caedac50
8 changed files with 18 additions and 18 deletions

View File

@@ -76,7 +76,7 @@ public class TimerTaskList implements Delayed {
*/
public void removeTask(TimerTask timerTask) {
synchronized (this) {
if (timerTask.timerTaskList.equals(this)) {
if (this.equals(timerTask.timerTaskList)) {
timerTask.next.prev = timerTask.prev;
timerTask.prev.next = timerTask.next;
timerTask.timerTaskList = null;