Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
openmole
Commits
75efe41e
Commit
75efe41e
authored
Jul 02, 2021
by
Romain Reuillon
Browse files
[Plugin] enh: type outputs in scala code
parent
480f75e2
Pipeline
#1175
passed with stage
in 8 minutes and 55 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
openmole/core/org.openmole.core.expansion/src/main/scala/org/openmole/core/expansion/ScalaCompilation.scala
View file @
75efe41e
...
...
@@ -258,7 +258,7 @@ object ScalaCompilation {
def
wrapOutput
=
s
"""
|scala.jdk.CollectionConverters.MapHasAsJava(Map[String, Any]( ${outputs.toSeq.map(p ⇒ s"""
"${p.name}"
->
$
{
p
.
name
}
""").mkString(",")} )).asJava
|scala.jdk.CollectionConverters.MapHasAsJava(Map[String, Any]( ${outputs.toSeq.map(p ⇒ s"""
"${p.name}"
->
(
$
{
p
.
name
}
:
$
{
toTypeString
(
p.`
type
`
)})
""").mkString(",")} )).asJava
|"""
.
stripMargin
}
...
...
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