use of org.sonarsource.sonarlint.core.container.model.DefaultRemoteModule in project sonarlint-core by SonarSource.
the class AllModulesReader method get.
@Override
public Map<String, RemoteModule> get() {
Map<String, RemoteModule> results = new HashMap<>();
ModuleList readModuleListFromStorage = storageReader.readModuleList();
Map<String, Module> modulesByKey = readModuleListFromStorage.getModulesByKeyMap();
for (Map.Entry<String, Module> entry : modulesByKey.entrySet()) {
results.put(entry.getKey(), new DefaultRemoteModule(entry.getValue()));
}
return results;
}
Aggregations