From 033271189ff888c4f50b7269067c381e11412803 Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Fri, 2 Oct 2020 15:10:13 -0300 Subject: [PATCH] Ignore codacy complaint about (dead) default switch labels --- .../main/java/bisq/core/api/CoreDisputeAgentsService.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/src/main/java/bisq/core/api/CoreDisputeAgentsService.java b/core/src/main/java/bisq/core/api/CoreDisputeAgentsService.java index 76105c916b..c8ae3b91f3 100644 --- a/core/src/main/java/bisq/core/api/CoreDisputeAgentsService.java +++ b/core/src/main/java/bisq/core/api/CoreDisputeAgentsService.java @@ -99,11 +99,6 @@ class CoreDisputeAgentsService { ecKey = refundAgentManager.getRegistrationKey(registrationKey); signature = refundAgentManager.signStorageSignaturePubKey(Objects.requireNonNull(ecKey)); registerRefundAgent(nodeAddress, languageCodes, ecKey, signature); - return; - default: - // Codacy requires default label in switch, Intellij does not. - //noinspection UnnecessaryReturnStatement - return; } } else { throw new IllegalArgumentException("unknown dispute agent type " + disputeAgentTypeString);