From 3cd892c85d9113c4f327ae814d323ef656e26eca Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Fri, 31 Jul 2026 07:49:50 +0000
Subject: [PATCH] Add explicit default clauses to switches flagged by java/missing-case-in-switch (#791)
---
opendj-server-legacy/src/main/java/org/opends/server/replication/common/StatusMachine.java | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/StatusMachine.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/StatusMachine.java
index 8bed1e3..183565b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/StatusMachine.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/StatusMachine.java
@@ -12,6 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2008 Sun Microsystems, Inc.
+ * Portions Copyright 2026 3A Systems, LLC.
*/
package org.opends.server.replication.common;
@@ -39,6 +40,9 @@
case DEGRADED_STATUS:
case BAD_GEN_ID_STATUS:
return true;
+ default:
+ // No action needed for the remaining values.
+ break;
}
return false;
--
Gitblit v1.10.0