Skip to content

Commit da72972

Browse files
committed
Lint
1 parent c591a2f commit da72972

File tree

3 files changed

+3
-231
lines changed

3 files changed

+3
-231
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/actions/CheckForNewExercisesOrUpdates.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public CheckForNewExercisesOrUpdates(boolean beQuiet, boolean backgroundCheck) {
7878

7979
@Override
8080
public void actionPerformed(ActionEvent e) {
81-
logger.info("action performed");
8281
run();
8382
}
8483

@@ -139,8 +138,7 @@ public void bgTaskFailed(Throwable ex) {
139138

140139
@Override
141140
public Course call() throws Exception {
142-
logger.info("1Downloading course to refresh cache");
143-
141+
logger.info("Downloading course to refresh cache");
144142
currentCourseFuture = tmcCore.getCourse(currentCourseBeforeUpdate.getDetailsUrlAsUri());
145143
return currentCourseFuture.get();
146144
}

tmc-plugin/src/fi/helsinki/cs/tmc/model/NBTmcSettings.java

Lines changed: 0 additions & 226 deletions
This file was deleted.

tmc-plugin/src/fi/helsinki/cs/tmc/ui/PreferencesPanel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package fi.helsinki.cs.tmc.ui;
22

3-
import com.google.common.util.concurrent.FutureCallback;
43
import fi.helsinki.cs.tmc.actions.RefreshCoursesAction;
54
import fi.helsinki.cs.tmc.core.domain.Course;
65
import fi.helsinki.cs.tmc.model.NbTmcSettings;
@@ -15,6 +14,7 @@
1514
import java.util.ArrayList;
1615
import java.util.List;
1716
import java.util.Locale;
17+
import java.util.Objects;
1818
import javax.swing.JFileChooser;
1919
import javax.swing.JPanel;
2020
import javax.swing.SwingUtilities;
@@ -62,7 +62,7 @@ public boolean noneIsEmpty() {
6262
public boolean equals(Object obj) {
6363
if (obj instanceof RefreshSettings) {
6464
RefreshSettings that = (RefreshSettings) obj;
65-
return ObjectUtils.equals(this.username, that.username)
65+
return Objects.equals(this.username, that.username)
6666
&& ObjectUtils.equals(this.password, that.password)
6767
&& ObjectUtils.equals(this.baseUrl, that.baseUrl);
6868
} else {

0 commit comments

Comments
 (0)