Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
4be3ef1f
Commit
4be3ef1f
authored
Sep 27, 2017
by
Björn Richerzhagen
Committed by
Jose Ignacio Monreal Bailey
Aug 20, 2019
Browse files
Bugfix for multiple vars in one string, if the string
parent
64814439
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/scenario/DefaultConfigurator.java
View file @
4be3ef1f
...
@@ -662,7 +662,7 @@ public class DefaultConfigurator implements Configurator {
...
@@ -662,7 +662,7 @@ public class DefaultConfigurator implements Configurator {
}
}
public
String
parseValue
(
String
value
)
{
public
String
parseValue
(
String
value
)
{
if
(
value
.
trim
().
startsWith
(
CONFIG_VARIABLE_PREFIX_TAG
))
{
if
(
value
.
trim
().
startsWith
(
CONFIG_VARIABLE_PREFIX_TAG
)
&&
!
value
.
trim
().
startsWith
(
CONFIG_VARIABLE_PREFIX_TAG
+
"{"
)
)
{
int
posDollar
=
value
.
indexOf
(
CONFIG_VARIABLE_PREFIX_TAG
);
int
posDollar
=
value
.
indexOf
(
CONFIG_VARIABLE_PREFIX_TAG
);
String
varName
=
value
.
substring
(
posDollar
+
1
,
value
.
length
());
String
varName
=
value
.
substring
(
posDollar
+
1
,
value
.
length
());
value
=
variables
.
get
(
varName
);
value
=
variables
.
get
(
varName
);
...
...
Write
Preview
Markdown
is supported
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