Skip to content

Commit

Permalink
Remove unnecessary ConfigKey<> from the initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sina Kashipazha committed Oct 19, 2023
1 parent 8c47508 commit 89eae58
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ public ConfigDepotImpl() {
* This map must contain all ConfigKey.Scope values, except the ConfigKey.Scope.Global.
*/
protected void createEmptyScopeLevelMappings() {
_scopeLevelConfigsMap = new HashMap<ConfigKey.Scope, Set<ConfigKey<?>>>();
_scopeLevelConfigsMap.put(ConfigKey.Scope.Zone, new HashSet<ConfigKey<?>>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.Cluster, new HashSet<ConfigKey<?>>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.StoragePool, new HashSet<ConfigKey<?>>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.Account, new HashSet<ConfigKey<?>>());
_scopeLevelConfigsMap = new HashMap<>();
_scopeLevelConfigsMap.put(ConfigKey.Scope.Zone, new HashSet<>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.Cluster, new HashSet<>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.StoragePool, new HashSet<>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.Account, new HashSet<>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.ImageStore, new HashSet<>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.Domain, new HashSet<ConfigKey<?>>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.ManagementServer, new HashSet<ConfigKey<?>>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.Domain, new HashSet<>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.ManagementServer, new HashSet<>());
_scopeLevelConfigsMap.put(ConfigKey.Scope.Network, new HashSet<>());
}

Expand Down

0 comments on commit 89eae58

Please sign in to comment.