You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/09/20 14:02:12 UTC

[dubbo] branch 3.0 updated: fix optimization field scope (#8751)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new a118292  fix optimization field scope (#8751)
a118292 is described below

commit a1182923b9aeefc9f9eed5e90807f48f78b282a3
Author: guilin <39...@users.noreply.github.com>
AuthorDate: Mon Sep 20 22:01:58 2021 +0800

    fix optimization field scope (#8751)
    
    Co-authored-by: luguilin <lu...@longfor.com>
---
 .../org/apache/dubbo/rpc/cluster/router/tag/model/TagRouterRule.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/model/TagRouterRule.java b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/model/TagRouterRule.java
index 2c01c02..113f172 100644
--- a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/model/TagRouterRule.java
+++ b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/model/TagRouterRule.java
@@ -45,8 +45,8 @@ import static org.apache.dubbo.rpc.cluster.Constants.TAGS_KEY;
 public class TagRouterRule extends AbstractRouterRule {
     private List<Tag> tags;
 
-    private Map<String, List<String>> addressToTagnames = new HashMap<>();
-    private Map<String, List<String>> tagnameToAddresses = new HashMap<>();
+    private final Map<String, List<String>> addressToTagnames = new HashMap<>();
+    private final Map<String, List<String>> tagnameToAddresses = new HashMap<>();
 
     @SuppressWarnings("unchecked")
     public static TagRouterRule parseFromMap(Map<String, Object> map) {