Skip to content

Commit

Permalink
Lip changes for new UUID type
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitmashu committed Jul 19, 2023
1 parent dfed199 commit 41c52c9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ private Future<ProcessedMessage> getMessage(JsonObject json) {

private ProcessedMessage getProcessedMessage(JsonObject json, String pathParamAttribute) {
StringBuilder id = new StringBuilder(json.getString("id"));

StringBuilder pathParam = new StringBuilder();
if (pathParamAttribute == null || pathParamAttribute.isBlank()) {
id.append("/").append(defaultAttribValue);
Expand All @@ -99,11 +98,7 @@ private ProcessedMessage getProcessedMessage(JsonObject json, String pathParamAt
pathParam.append("_").append(DigestUtils.shaHex(id.toString()));
}
ProcessedMessage message =
new ProcessedMessage(
json.getString("id").replaceAll("/", "_").replaceAll("-", "_").replaceAll("\\.", "_"),
pathParam.toString(),
json);

new ProcessedMessage(json.getString("id"), pathParam.toString(), json);
return message;
}

Expand Down

0 comments on commit 41c52c9

Please sign in to comment.