Commit f508cb56 authored by Christoph Richter's avatar Christoph Richter
Browse files

CMakeConfig: Replaced dependency list by HashSet

parent 6fc64638
Pipeline #64181 passed with stage
in 2 minutes and 45 seconds
......@@ -12,6 +12,7 @@ import freemarker.template.TemplateExceptionHandler;
import java.io.IOException;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
......@@ -48,7 +49,7 @@ public class CMakeConfig {
private CMakeListsCPPViewModel cMakeListsViewModel = new CMakeListsCPPViewModel();
private List<CMakeFindModule> moduleList = new ArrayList<>();
private HashSet<CMakeFindModule> moduleList = new HashSet<>();
// constructor
public CMakeConfig(String compName) {
......
......@@ -2,7 +2,7 @@ package de.monticore.lang.monticar.generator.cmake;
import de.monticore.lang.monticar.generator.cpp.viewmodel.ViewModelBase;
import java.util.List;
import java.util.HashSet;
/**
* View model which is used by the freemarker template
......@@ -17,7 +17,7 @@ public class CMakeListsCPPViewModel extends ViewModelBase {
// fields
private String compName;
private List<CMakeFindModule> moduleDependencies;
private HashSet<CMakeFindModule> moduleDependencies;
// methods
......@@ -29,11 +29,11 @@ public class CMakeListsCPPViewModel extends ViewModelBase {
this.compName = compName;
}
public List<CMakeFindModule> getModuleDependencies() {
public HashSet<CMakeFindModule> getModuleDependencies() {
return moduleDependencies;
}
public void setModuleDependencies(List<CMakeFindModule> moduleDependencies) {
public void setModuleDependencies(HashSet<CMakeFindModule> moduleDependencies) {
this.moduleDependencies = moduleDependencies;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment