From b46f4a993dd63faa38f116b0ea0833c804423690 Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Fri, 15 May 2020 09:58:45 -0400 Subject: [PATCH] One more fix for 5.0.1 --- .../uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java index 7198767ee0ee..d782433263f3 100644 --- a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java +++ b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/BaseMigrationTasks.java @@ -65,7 +65,12 @@ public Builder forVersion(T theRelease) { theTask.validate(); myTasks.put(theRelease, theTask); }; - return new Builder(theRelease.name(), sink); + return new Builder(toReleaseName(theRelease), sink); + } + + @Nonnull + protected String toReleaseName(T theRelease) { + return theRelease.name(); } public List getAllTasks(T[] theVersionEnumValues) {