aboutsummaryrefslogtreecommitdiffstats
path: root/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-04-21 09:13:14 +0200
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-04-21 09:13:14 +0200
commit947aac66eb03dc62a5f93e798325a3ad30e3c10d (patch)
treebd573b82896e9d2bc65ff7cb2bf611545a899acb /pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords
parent245f62cd9e2a0ced2be03e5fff04fa86ea505596 (diff)
Resolve checkstyle warnings in PNF simulator
Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I43e9f129c24ef33d93b550600e4dd850f881126b
Diffstat (limited to 'pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords')
-rw-r--r--pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords/Keyword.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords/Keyword.java b/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords/Keyword.java
index b7f6fb3..1bb1332 100644
--- a/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords/Keyword.java
+++ b/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/keywords/Keyword.java
@@ -36,13 +36,13 @@ public class Keyword {
protected static final String NONLETTERS_REGEX = "([^a-zA-Z]+)";
protected static final Function1<String, String> OPTIONAL =
- regex -> regex + "?";
+ regex -> regex + "?";
private final String name;
private final List<String> meaningfulParts;
public static final Function2<Keyword, String, Boolean> IS_MATCHING_KEYWORD_NAME = (keyword, key) ->
- keyword != null && keyword.getName() != null && keyword.getName().equals(key);
+ keyword != null && keyword.getName() != null && keyword.getName().equals(key);
/**
* Returns list of independent parts inside the keyword. Current implementation assumes that customer can join keywords with integer values, so
@@ -69,8 +69,8 @@ public class Keyword {
public String substituteKeyword(String substitution) {
return meaningfulParts.stream()
- .map(part -> part.equals(name) ? substitution : part)
- .collect(Collectors.joining());
+ .map(part -> part.equals(name) ? substitution : part)
+ .collect(Collectors.joining());
}
}