You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ji...@apache.org on 2024/06/27 03:35:07 UTC
(shardingsphere) branch master updated: Fix sonar issue on ComputeNodeInstanceContext (#31886)
This is an automated email from the ASF dual-hosted git repository.
jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 3d4f2824375 Fix sonar issue on ComputeNodeInstanceContext (#31886)
3d4f2824375 is described below
commit 3d4f28243753d2aa03992505e084f4c95a4b08b5
Author: Haoran Meng <me...@gmail.com>
AuthorDate: Thu Jun 27 11:35:01 2024 +0800
Fix sonar issue on ComputeNodeInstanceContext (#31886)
---
.../shardingsphere/infra/instance/ComputeNodeInstanceContext.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContext.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContext.java
index b8f3b33235c..777e43ef409 100644
--- a/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContext.java
+++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/instance/ComputeNodeInstanceContext.java
@@ -59,6 +59,7 @@ public final class ComputeNodeInstanceContext {
private final Collection<ComputeNodeInstance> allClusterInstances = new CopyOnWriteArrayList<>();
+ @SuppressWarnings("rawtypes")
public ComputeNodeInstanceContext(final ComputeNodeInstance instance, final WorkerIdGenerator workerIdGenerator, final ModeConfiguration modeConfiguration,
final LockContext lockContext, final EventBusContext eventBusContext) {
this.instance = instance;
@@ -78,6 +79,7 @@ public final class ComputeNodeInstanceContext {
* @param workerIdGenerator worker id generator
* @param lockContext lock context
*/
+ @SuppressWarnings("rawtypes")
public void init(final WorkerIdGenerator workerIdGenerator, final LockContext lockContext) {
this.workerIdGenerator.set(workerIdGenerator);
this.lockContext.set(lockContext);