From bb81a28df2e5a01f7ee1b2fa9ccec03bcd87880b Mon Sep 17 00:00:00 2001 From: Dominic Reuter Date: Fri, 7 Jun 2024 13:15:36 +0200 Subject: [PATCH 1/2] chore: correct null check message to corresponding field --- .../edc/edr/spi/types/EndpointDataReferenceEntry.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java b/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java index adfb13b745a..2b353d235bc 100644 --- a/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java +++ b/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java @@ -23,7 +23,8 @@ /** * Represents metadata associated with an EDR */ -public class EndpointDataReferenceEntry extends Entity { +public class +EndpointDataReferenceEntry extends Entity { public static final String SIMPLE_TYPE = "EndpointDataReferenceEntry"; public static final String EDR_ENTRY_TYPE = EDC_NAMESPACE + SIMPLE_TYPE; @@ -118,7 +119,7 @@ public EndpointDataReferenceEntry build() { requireNonNull(entity.assetId, ASSET_ID); requireNonNull(entity.agreementId, AGREEMENT_ID); requireNonNull(entity.transferProcessId, TRANSFER_PROCESS_ID); - requireNonNull(entity.providerId, TRANSFER_PROCESS_ID); + requireNonNull(entity.providerId, PROVIDER_ID); // The id is always equals to transfer process id entity.id = entity.transferProcessId; return entity; From a3665a519f9dff8fadeac52a0a1d37f4a09c4575 Mon Sep 17 00:00:00 2001 From: Dominic Reuter Date: Fri, 7 Jun 2024 13:33:28 +0200 Subject: [PATCH 2/2] chore: correct formatting --- .../eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java b/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java index 2b353d235bc..20502e41b07 100644 --- a/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java +++ b/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java @@ -23,8 +23,7 @@ /** * Represents metadata associated with an EDR */ -public class -EndpointDataReferenceEntry extends Entity { +public class EndpointDataReferenceEntry extends Entity { public static final String SIMPLE_TYPE = "EndpointDataReferenceEntry"; public static final String EDR_ENTRY_TYPE = EDC_NAMESPACE + SIMPLE_TYPE; @@ -114,6 +113,7 @@ public Builder self() { return this; } + @Override public EndpointDataReferenceEntry build() { super.build(); requireNonNull(entity.assetId, ASSET_ID);