a
/**
* Resolves JSON.CONTENT as object or array
- *
+ *
* First the logic checks if dig-deep needed to avoid unwanted recursions. If not needed, the step definition is
* returned intact. Otherwise calls the dig deep method to perform the operation.
- *
+ *
* returns: The effective step definition
*/
@Override
@@ -433,9 +430,7 @@ private void loadAnnotatedHostProperties() {
throw new RuntimeException(msg + e);
}
- properties.keySet().stream().forEach(thisKey -> {
- propertyKeys.add(thisKey.toString());
- });
+ properties.keySet().forEach(thisKey -> propertyKeys.add(thisKey.toString()));
}
private boolean isPropertyKey(String runTimeToken) {
@@ -463,7 +458,7 @@ private int findArrayIndex(String thisPath, String actualPath) {
if ($VALUE.equals(valueExpr)) {
return 0;
}
- return valueOf(substringBetween(valueExpr, "[", "]"));
+ return Integer.parseInt(substringBetween(valueExpr, "[", "]"));
}
private String resolveFieldTypes(String resolvedJson) {
@@ -472,7 +467,8 @@ private String resolveFieldTypes(String resolvedJson) {
return resolvedJson;
}
- Map fieldMap = mapper.readValue(resolvedJson, new TypeReference