SONAR suggestion - remove mutable public collections
Change-Id: If2980109c42399f566805a5b741cf7e10ab6544e
diff --git a/apps/gluon/src/main/java/org/onosproject/gluon/manager/GluonManager.java b/apps/gluon/src/main/java/org/onosproject/gluon/manager/GluonManager.java
index 11f3738..c0a4b67 100644
--- a/apps/gluon/src/main/java/org/onosproject/gluon/manager/GluonManager.java
+++ b/apps/gluon/src/main/java/org/onosproject/gluon/manager/GluonManager.java
@@ -57,7 +57,7 @@
}
};
- public static Map<String, GluonServer> serverMap = new LinkedHashMap<>();
+ private static Map<String, GluonServer> serverMap = new LinkedHashMap<>();
@Activate
public void activate() {
diff --git a/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommandCompleter.java b/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommandCompleter.java
index b810d73..f497721 100644
--- a/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommandCompleter.java
+++ b/apps/simplefabric/src/main/java/org/onosproject/simplefabric/SimpleFabricCommandCompleter.java
@@ -28,7 +28,7 @@
*/
public class SimpleFabricCommandCompleter extends AbstractChoicesCompleter {
- public static final List<String> COMMAND_LIST =
+ private static final List<String> COMMAND_LIST =
Arrays.asList("show", "intents", "reactive-intents", "refresh", "flush");
@Override