diff --git a/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/ClientInvocationHandlerFactory.java b/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/ClientInvocationHandlerFactory.java index 74857462e0f..51b75a2a440 100644 --- a/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/ClientInvocationHandlerFactory.java +++ b/hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/ClientInvocationHandlerFactory.java @@ -56,8 +56,8 @@ public class ClientInvocationHandlerFactory { myMethodToLambda.put(theClientType.getMethod("setEncoding", EncodingEnum.class), new SetEncodingLambda()); myMethodToLambda.put(theClientType.getMethod("setPrettyPrint", Boolean.class), new SetPrettyPrintLambda()); - myMethodToLambda.put(theClientType.getMethod("registerInterceptor", IClientInterceptor.class), new RegisterInterceptorLambda()); - myMethodToLambda.put(theClientType.getMethod("unregisterInterceptor", IClientInterceptor.class), new UnregisterInterceptorLambda()); + myMethodToLambda.put(theClientType.getMethod("registerInterceptor", Object.class), new RegisterInterceptorLambda()); + myMethodToLambda.put(theClientType.getMethod("unregisterInterceptor", Object.class), new UnregisterInterceptorLambda()); myMethodToLambda.put(theClientType.getMethod("setSummary", SummaryEnum.class), new SetSummaryLambda()); myMethodToLambda.put(theClientType.getMethod("fetchResourceFromUrl", Class.class, String.class), new FetchResourceFromUrlLambda()); diff --git a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java index f599994c907..809a26b28a4 100644 --- a/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java +++ b/hapi-fhir-jpaserver-migrate/src/main/java/ca/uhn/fhir/jpa/migrate/tasks/api/Builder.java @@ -170,10 +170,19 @@ public class Builder { } public void renameIndex(String theVersion, String theOldIndexName, String theNewIndexName) { + renameIndexOptional(false, theVersion, theOldIndexName, theNewIndexName); + } + + public void renameIndexStub(String theVersion, String theOldIndexName, String theNewIndexName) { + renameIndexOptional(true, theVersion, theOldIndexName, theNewIndexName); + } + + private void renameIndexOptional(boolean theDoNothing, String theVersion, String theOldIndexName, String theNewIndexName) { RenameIndexTask task = new RenameIndexTask(myRelease, theVersion); task.setOldIndexName(theOldIndexName); task.setNewIndexName(theNewIndexName); task.setTableName(myTableName); + task.setDoNothing(theDoNothing); addTask(task); } diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java index fede33ce24a..56b6d378d2f 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientDstu2Test.java @@ -2658,7 +2658,7 @@ public class GenericClientDstu2Test { } @Override - public void registerInterceptor(IClientInterceptor theInterceptor) { + public void registerInterceptor(Object theInterceptor) { // nothing } @@ -2673,7 +2673,7 @@ public class GenericClientDstu2Test { } @Override - public void unregisterInterceptor(IClientInterceptor theInterceptor) { + public void unregisterInterceptor(Object theInterceptor) { // nothing }