Fixe SonarQube-Issues S2789 und S125
- SchedulerStatus: null-Check auf Optional<sessionTotals> entfernt (S2789) - GuiSchedulerTab: auskommentierten Code-Kommentar entfernt (S125) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
-2
@@ -142,8 +142,6 @@ public final class GuiSchedulerTab {
|
||||
intervalField.setText(String.valueOf(useCase.getIntervalSeconds()));
|
||||
intervalField.setEditable(true);
|
||||
intervalField.setDisable(false);
|
||||
// Buttons werden im nächsten updateStatus-Tick (1 Hz) korrekt gesetzt;
|
||||
// vorab grob aktivieren damit kein misleadender Disabled-Zustand bleibt.
|
||||
startButton.setDisable(false);
|
||||
startButton.setTooltip(null);
|
||||
}
|
||||
|
||||
-3
@@ -60,9 +60,6 @@ public record SchedulerStatus(
|
||||
if (lastError == null) {
|
||||
throw new IllegalArgumentException("lastError darf nicht null sein");
|
||||
}
|
||||
if (sessionTotals == null) {
|
||||
throw new IllegalArgumentException("sessionTotals darf nicht null sein");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user