Use a switch expression to dispatch server configuration 38/114238/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 28 Oct 2024 20:24:53 +0000 (21:24 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 29 Oct 2024 09:32:34 +0000 (10:32 +0100)
commit6dba41de29d71c0ce5b7220056bec56ee9d3d30e
treea8a3b7445d52dc60231eaeaa661533bc7e05e181
parentceddca42c959087a5ea3a1ad388a9dfab4e80f18
Use a switch expression to dispatch server configuration

RaftActorServerConfigurationSupport uses an if/else cascade, which we
can easily replace with switch expression.

Change-Id: Ib570d8a3dd2ddac1d8dbe7ba3907b19875fb99c1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorServerConfigurationSupport.java