Compile fixes

This commit is contained in:
James Agnew 2019-09-19 10:10:47 -04:00
parent 2be63a1650
commit 4115a4bb6d
4 changed files with 46 additions and 6 deletions

View File

@ -877,6 +877,16 @@ public class GenericOkHttpClientDstu2Test {
public List<String> getFormatCommentsPost() {
return null;
}
@Override
public Object getUserData(String theName) {
throw new UnsupportedOperationException();
}
@Override
public void setUserData(String theName, Object theValue) {
throw new UnsupportedOperationException();
}
};
client

View File

@ -889,6 +889,16 @@ public class GenericJaxRsClientDstu2Test {
public List<String> getFormatCommentsPost() {
return null;
}
@Override
public Object getUserData(String theName) {
throw new UnsupportedOperationException();
}
@Override
public void setUserData(String theName, Object theValue) {
throw new UnsupportedOperationException();
}
};

View File

@ -911,6 +911,16 @@ public class GenericJaxRsClientDstu3Test {
public List<String> 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

View File

@ -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<IResource> myContainedResources;
@Override
public List<IResource> getContainedResources() {
if (myContainedResources == null) {
myContainedResources = new ArrayList<IResource>();
@ -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();
}
}