From 4115a4bb6df9117205bc88df87a1660e861ae0e5 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Thu, 19 Sep 2019 10:10:47 -0400 Subject: [PATCH] Compile fixes --- .../okhttp/GenericOkHttpClientDstu2Test.java | 10 +++++++++ .../client/GenericJaxRsClientDstu2Test.java | 10 +++++++++ .../client/GenericJaxRsClientDstu3Test.java | 10 +++++++++ .../model/dstu3/composite/ContainedDt.java | 22 ++++++++++++++----- 4 files changed, 46 insertions(+), 6 deletions(-) diff --git a/hapi-fhir-client-okhttp/src/test/java/ca/uhn/fhir/okhttp/GenericOkHttpClientDstu2Test.java b/hapi-fhir-client-okhttp/src/test/java/ca/uhn/fhir/okhttp/GenericOkHttpClientDstu2Test.java index 54561e7527d..2f2318ed06d 100644 --- a/hapi-fhir-client-okhttp/src/test/java/ca/uhn/fhir/okhttp/GenericOkHttpClientDstu2Test.java +++ b/hapi-fhir-client-okhttp/src/test/java/ca/uhn/fhir/okhttp/GenericOkHttpClientDstu2Test.java @@ -877,6 +877,16 @@ public class GenericOkHttpClientDstu2Test { public List getFormatCommentsPost() { return null; } + + @Override + public Object getUserData(String theName) { + throw new UnsupportedOperationException(); + } + + @Override + public void setUserData(String theName, Object theValue) { + throw new UnsupportedOperationException(); + } }; client diff --git a/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu2Test.java b/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu2Test.java index d2f3d7137ae..014390c674a 100644 --- a/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu2Test.java +++ b/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu2Test.java @@ -889,6 +889,16 @@ public class GenericJaxRsClientDstu2Test { public List getFormatCommentsPost() { return null; } + + @Override + public Object getUserData(String theName) { + throw new UnsupportedOperationException(); + } + + @Override + public void setUserData(String theName, Object theValue) { + throw new UnsupportedOperationException(); + } }; diff --git a/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java b/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java index 2a704277757..4b6b5da307d 100644 --- a/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java +++ b/hapi-fhir-jaxrsserver-base/src/test/java/ca/uhn/fhir/jaxrs/client/GenericJaxRsClientDstu3Test.java @@ -911,6 +911,16 @@ public class GenericJaxRsClientDstu3Test { public List getFormatCommentsPost() { return null; } + + @Override + public Object getUserData(String theName) { + throw new UnsupportedOperationException(); + } + + @Override + public void setUserData(String theName, Object theValue) { + throw new UnsupportedOperationException(); + } }; //@formatter:off diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu3/composite/ContainedDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu3/composite/ContainedDt.java index d19e81d843e..0e4a945a267 100644 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu3/composite/ContainedDt.java +++ b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu3/composite/ContainedDt.java @@ -9,9 +9,9 @@ package ca.uhn.fhir.model.dstu3.composite; * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,21 +20,21 @@ package ca.uhn.fhir.model.dstu3.composite; * #L% */ -import java.util.ArrayList; -import java.util.List; - -import ca.uhn.fhir.model.api.IDatatype; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.annotation.Child; import ca.uhn.fhir.model.api.annotation.DatatypeDef; import ca.uhn.fhir.model.base.composite.BaseContainedDt; +import java.util.ArrayList; +import java.util.List; + @DatatypeDef(name = "contained") public class ContainedDt extends BaseContainedDt { @Child(name = "resource", type = IResource.class, order = 0, min = 0, max = Child.MAX_UNLIMITED) private List myContainedResources; + @Override public List getContainedResources() { if (myContainedResources == null) { myContainedResources = new ArrayList(); @@ -51,4 +51,14 @@ public class ContainedDt extends BaseContainedDt { return myContainedResources == null || myContainedResources.size() == 0; } + @Override + public Object getUserData(String theName) { + throw new UnsupportedOperationException(); + } + + @Override + public void setUserData(String theName, Object theValue) { + throw new UnsupportedOperationException(); + } + }