Skip to content

Commit

Permalink
Merge pull request #42 from ankitmashu/master
Browse files Browse the repository at this point in the history
Lip changes for new UUID type
  • Loading branch information
kailash authored Jul 24, 2023
2 parents dfed199 + 41c52c9 commit 9adc1d8
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 9adc1d8

Please sign in to comment.