Source code cleanup

This commit is contained in:
van Elst, Marcus
2026-04-21 10:38:16 +02:00
parent 202088d1d3
commit 6babdd226e
5 changed files with 1 additions and 12 deletions
@@ -2159,12 +2159,6 @@ public final class GuiConfigurationEditorWorkspace {
return label;
}
private Label textLabel(String text) {
Label label = new Label(text);
label.setWrapText(true);
return label;
}
private void showStatusMessage(String message) {
statusLabel.setText(message);
statusLabel.setVisible(true);
@@ -822,7 +822,6 @@ class GuiEditorRegressionSmokeTest {
GuiConfigurationEditorWorkspace ws = new GuiConfigurationEditorWorkspace(Optional.empty());
ws.requestNewConfiguration();
String originalSource = ws.editorState().values().sourceFolder();
GuiConfigurationValues dirty = ws.editorState().values()
.withSourceFolder("./dirty-source");
ws.editorState = ws.editorState().withValues(dirty);
@@ -40,7 +40,6 @@ class ClaudeModelCatalogAdapterTest {
private HttpClient httpClient;
@Mock
@SuppressWarnings("unchecked")
private HttpResponse<String> httpResponse;
private ClaudeModelCatalogAdapter adapter;
@@ -40,7 +40,6 @@ class OpenAiCompatibleModelCatalogAdapterTest {
private HttpClient httpClient;
@Mock
@SuppressWarnings("unchecked")
private HttpResponse<String> httpResponse;
private OpenAiCompatibleModelCatalogAdapter adapter;
@@ -79,8 +79,6 @@ public class ProviderTechnicalTestService {
private static final int DEFAULT_TIMEOUT_SECONDS = 30;
private final AiModelCatalogPort modelCatalogPort;
private final ApiKeyResolutionPort apiKeyResolutionPort;
/**
* Erstellt einen neuen Service mit den erforderlichen Ports.
*
@@ -91,7 +89,7 @@ public class ProviderTechnicalTestService {
public ProviderTechnicalTestService(AiModelCatalogPort modelCatalogPort,
ApiKeyResolutionPort apiKeyResolutionPort) {
this.modelCatalogPort = Objects.requireNonNull(modelCatalogPort, "modelCatalogPort must not be null");
this.apiKeyResolutionPort = Objects.requireNonNull(apiKeyResolutionPort,
Objects.requireNonNull(apiKeyResolutionPort,
"apiKeyResolutionPort must not be null");
}