Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
f508cb56
Commit
f508cb56
authored
Jul 20, 2018
by
Christoph Richter
Browse files
CMakeConfig: Replaced dependency list by HashSet
parent
6fc64638
Pipeline
#64181
passed with stage
in 2 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/cmake/CMakeConfig.java
View file @
f508cb56
...
...
@@ -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
Lis
t
<
CMakeFindModule
>
moduleList
=
new
ArrayLis
t
<>();
private
HashSe
t
<
CMakeFindModule
>
moduleList
=
new
HashSe
t
<>();
// constructor
public
CMakeConfig
(
String
compName
)
{
...
...
src/main/java/de/monticore/lang/monticar/generator/cmake/CMakeListsCPPViewModel.java
View file @
f508cb56
...
...
@@ -2,7 +2,7 @@ package de.monticore.lang.monticar.generator.cmake;
import
de.monticore.lang.monticar.generator.cpp.viewmodel.ViewModelBase
;
import
java.util.
Lis
t
;
import
java.util.
HashSe
t
;
/**
* View model which is used by the freemarker template
...
...
@@ -17,7 +17,7 @@ public class CMakeListsCPPViewModel extends ViewModelBase {
// fields
private
String
compName
;
private
Lis
t
<
CMakeFindModule
>
moduleDependencies
;
private
HashSe
t
<
CMakeFindModule
>
moduleDependencies
;
// methods
...
...
@@ -29,11 +29,11 @@ public class CMakeListsCPPViewModel extends ViewModelBase {
this
.
compName
=
compName
;
}
public
Lis
t
<
CMakeFindModule
>
getModuleDependencies
()
{
public
HashSe
t
<
CMakeFindModule
>
getModuleDependencies
()
{
return
moduleDependencies
;
}
public
void
setModuleDependencies
(
Lis
t
<
CMakeFindModule
>
moduleDependencies
)
{
public
void
setModuleDependencies
(
HashSe
t
<
CMakeFindModule
>
moduleDependencies
)
{
this
.
moduleDependencies
=
moduleDependencies
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment