From 033c18d9a66105fd7241c009d711feab4fbe9078 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 7 Apr 2025 10:50:32 +0200 Subject: [PATCH] Fix a raw type Guarantee a ShardSnapshotCohort return, fixing a warning. JIRA: CONTROLLER-2134 Change-Id: I4606cac4487e34a89f3cdbeb667f4094bb704e4c Signed-off-by: Robert Varga --- .../org/opendaylight/controller/cluster/datastore/Shard.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java index 79aa1ea100..30b63de50f 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java @@ -87,7 +87,6 @@ import org.opendaylight.controller.cluster.notifications.RoleChangeNotifier; import org.opendaylight.controller.cluster.raft.LeadershipTransferFailedException; import org.opendaylight.controller.cluster.raft.RaftActor; import org.opendaylight.controller.cluster.raft.RaftActorRecoveryCohort; -import org.opendaylight.controller.cluster.raft.RaftActorSnapshotCohort; import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry; import org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus; import org.opendaylight.controller.cluster.raft.client.messages.OnDemandRaftState; @@ -635,7 +634,7 @@ public class Shard extends RaftActor { } @Override - protected final RaftActorSnapshotCohort getRaftActorSnapshotCohort() { + protected final ShardSnapshotCohort getRaftActorSnapshotCohort() { return snapshotCohort; } -- 2.36.6