From 0ce0af5f7191d3121c44d69715adea267a338659 Mon Sep 17 00:00:00 2001 From: Grace Pigeau <122994497+grapigeau@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:43:52 -0400 Subject: [PATCH 1/2] Update plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java Co-authored-by: avarsava <17747491+avarsava@users.noreply.github.com> --- .../ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java index 7aadc718a..bf2444837 100644 --- a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java +++ b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java @@ -124,13 +124,7 @@ public void generateUUID(Consumer digest) { @Override public int hashCode() { - final var prime = 31; - var result = 1; - result = prime * result + (owner == null ? 0 : owner.hashCode()); - result = prime * result + (caseId == null ? 0 : caseId.hashCode()); - result = prime * result + (limsIds == null ? 0 : limsIds.hashCode()); - result = prime * result + Long.hashCode(requisitionId); - return result; + return Objects.hash(owner, caseId, limsIds, requisitionId); } private String createRequestBody() { From da797cfbc3b99d4b8aa7a11800c41c904f76fe6c Mon Sep 17 00:00:00 2001 From: Grace Pigeau <122994497+grapigeau@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:54:35 -0400 Subject: [PATCH 2/2] Update plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java Co-authored-by: avarsava <17747491+avarsava@users.noreply.github.com> --- .../java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java index bf2444837..7b81e9bd8 100644 --- a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java +++ b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java @@ -150,8 +150,7 @@ private String createRequestBody() { } private String formatSetAsString(Set set) { - return String.join( - ",", set.stream().map(name -> ("\"" + name + "\"")).collect(Collectors.toList())); + return set.stream().map(name -> ("\"" + name + "\"")).collect(Collectors.joining(",")); } @Override