Supplier<Pair<Integer, JsonNode>> result; try { String[] combined = ArrayUtils.addAll(rootUri.split("/"), action.patch.getPath().split("/")); String fullPath = String.join("/", combined).replace("/-", ""); switch (action.patch.getOperation()) { case ADD: result = handleAddOp(fullPath, action.patch.getValue(), requestScope, action); break; case REPLACE: result = handleReplaceOp(fullPath, action.patch.getValue(), requestScope); break; case REMOVE: result = handleRemoveOp(fullPath, action.patch.getValue(), requestScope); break; default: throw new InvalidEntityBodyException( "Could not parse patch extension operation:" + action.patch.getOperation());
Supplier<Pair<Integer, JsonNode>> result; try { String[] combined = ArrayUtils.addAll(rootUri.split("/"), action.patch.getPath().split("/")); String fullPath = String.join("/", combined).replace("/-", ""); switch (action.patch.getOperation()) { case ADD: result = handleAddOp(fullPath, action.patch.getValue(), requestScope, action); break; case REPLACE: result = handleReplaceOp(fullPath, action.patch.getValue(), requestScope); break; case REMOVE: result = handleRemoveOp(fullPath, action.patch.getValue(), requestScope); break; default: throw new InvalidEntityBodyException( "Could not parse patch extension operation:" + action.patch.getOperation());