From 3f81f18eb946afaf7036064cf69d0eff5025261a Mon Sep 17 00:00:00 2001 From: retgal Date: Fri, 30 Aug 2024 18:24:32 +0200 Subject: [PATCH] Fix code smells --- src/main/java/mpo/dayon/common/gui/common/BaseFrame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/mpo/dayon/common/gui/common/BaseFrame.java b/src/main/java/mpo/dayon/common/gui/common/BaseFrame.java index 0cc19ff1..5566f665 100644 --- a/src/main/java/mpo/dayon/common/gui/common/BaseFrame.java +++ b/src/main/java/mpo/dayon/common/gui/common/BaseFrame.java @@ -298,7 +298,7 @@ public void actionPerformed(ActionEvent ev) { if (assistant == null) { updateAssistedNetworkConfiguration(addressTextField, portNumberTextField, autoConnectCheckBox, newTokenServerUrl); } else { - updateAssistantNetworkConfiguration(addressTextField, portNumberTextField, autoConnectCheckBox, newTokenServerUrl, assistant.getNetworkEngine()); + updateAssistantNetworkConfiguration(portNumberTextField, newTokenServerUrl, assistant.getNetworkEngine()); } } } @@ -437,7 +437,7 @@ private void updateAssistedNetworkConfiguration(JTextField addressTextField, JTe } } - private void updateAssistantNetworkConfiguration(JTextField addressTextField, JTextField portNumberTextField, JCheckBox autoConnectCheckBox, String newTokenServerUrl, NetworkAssistantEngine networkEngine) { + private void updateAssistantNetworkConfiguration(JTextField portNumberTextField, String newTokenServerUrl, NetworkAssistantEngine networkEngine) { final NetworkAssistantEngineConfiguration newNetworkConfiguration = new NetworkAssistantEngineConfiguration( Integer.parseInt(portNumberTextField.getText()), newTokenServerUrl);