From e237f289bdbb36bb4afcdd2b922ce325cd69271b Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 4 Aug 2023 18:45:23 +1000 Subject: [PATCH] Don't warn for loading a wrong version package more than once --- .../java/org/hl7/fhir/utilities/npm/NpmPackage.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java index dec5d8c76..df3f36382 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/npm/NpmPackage.java @@ -297,6 +297,7 @@ public class NpmPackage { private Map userData; private boolean minimalMemory; private int size; + private boolean warned = false; /** * Constructor @@ -1375,4 +1376,13 @@ public class NpmPackage { this.size = size; } + public boolean isWarned() { + return warned; + } + + public void setWarned(boolean warned) { + this.warned = warned; + } + + } \ No newline at end of file