Skip to content

Commit cc22cd3

Browse files
committed
General cleanup
1 parent b275781 commit cc22cd3

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import fi.helsinki.cs.tmc.core.communication.HttpResult;
1414
import fi.helsinki.cs.tmc.core.domain.submission.SubmissionResult;
1515
import fi.helsinki.cs.tmc.core.exceptions.TmcCoreException;
16-
import java.io.IOException;
1716
import java.net.URI;
1817
import java.util.HashMap;
1918
import java.util.List;
@@ -24,12 +23,14 @@
2423

2524
public class SendFeedbackAction {
2625

26+
private static final Logger log = Logger.getLogger(SendFeedbackAction.class.getName());
27+
28+
private final SubmissionResult result;
29+
2730
private List<FeedbackAnswer> answers;
2831
private TmcCore core;
2932
private ConvenientDialogDisplayer dialogs;
30-
private final SubmissionResult result;
3133
private NbTmcSettings settings = NbTmcSettings.getDefault();
32-
private static final Logger log = Logger.getLogger(SendFeedbackAction.class.getName());
3334

3435
public SendFeedbackAction(List<FeedbackAnswer> answers, SubmissionResult result) {
3536
this.answers = answers;
@@ -52,11 +53,11 @@ public void run() {
5253

5354
private Map<String, String> getFeedbackAnswers() {
5455
Map<String, String> answerMap = new HashMap<String, String>();
55-
56+
5657
for (FeedbackAnswer answer : answers) {
5758
answerMap.put("" + answer.getQuestion().getId(), answer.getAnswer());
5859
}
59-
60+
6061
return answerMap;
6162
}
6263

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ public static String getServerExceptionMsg(Throwable t) {
1212
}
1313
return t.getMessage();
1414
}
15-
16-
}
15+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ public void actionPerformed(ActionEvent event) {
7676

7777
prefUiFactory.showPreferencesDialog(listener);
7878
}
79-
}
79+
}

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void run() {
126126
dialog.close();
127127
final ResultCollector resultCollector = new ResultCollector(exercise);
128128
resultCollector.setValidationResult(result.getValidationResult());
129-
129+
130130
resultDisplayer.showSubmissionResult(exercise, result, resultCollector);
131131
exercise.setAttempted(true);
132132
if (result.isAllTestsPassed()) {
@@ -135,7 +135,6 @@ public void run() {
135135
courseDb.save();
136136
new CheckForNewExercisesOrUpdates(true, false).run();
137137
}
138-
139138
});
140139
}
141140

@@ -154,8 +153,5 @@ public void run() {
154153

155154
});
156155
}
157-
158156
}
159-
160-
}
161-
157+
}

0 commit comments

Comments
 (0)