CPD Results
The following document contains the results of PMD's CPD 7.14.0.
Duplications
| File | Line |
|---|---|
| com/bonitasoft/processbuilder/extension/template/RestApiTemplate.java | 121 |
| com/bonitasoft/processbuilder/extension/template/RestApiTemplate.java | 158 |
public JsonNode toJson(ObjectMapper mapper) {
ObjectNode root = mapper.createObjectNode();
// Template-specific fields at the top when this is a template definition
if (isTemplate) {
root.put("isTemplate", true);
root.put("templateVersion", templateVersion != null ? templateVersion : "2.0");
}
root.put("baseUrl", baseUrl);
root.put("timeoutMs", timeoutMs);
root.put("verifySsl", verifySsl);
if (!headers.isEmpty()) {
ObjectNode h = mapper.createObjectNode();
headers.forEach(h::put);
root.set("headers", h);
}
root.set("auth", auth.toJson(mapper)); | |
