FIx errorprone detected issues

This commit is contained in:
jamesagnew 2019-01-05 13:43:55 -05:00
parent 8f8385627f
commit 39f2062802
5 changed files with 1106 additions and 1104 deletions

View File

@ -111,4 +111,9 @@ public abstract class AbstractJaxRsPageProvider extends AbstractJaxRsProvider im
return BundleInclusionRule.BASED_ON_INCLUDES;
}
@Override
public PreferReturnEnum getDefaultPreferReturn() {
return PreferReturnEnum.REPRESENTATION;
}
}

View File

@ -340,7 +340,12 @@ implements IRestfulServer<JaxRsRequest>, IResourceProvider {
return BundleInclusionRule.BASED_ON_INCLUDES;
}
/**
@Override
public PreferReturnEnum getDefaultPreferReturn() {
return PreferReturnEnum.REPRESENTATION;
}
/**
* The resource type should return conform to the generic resource included
* in the topic
*/

View File

@ -31,7 +31,6 @@ public interface IRestfulServer<T extends RequestDetails> extends IRestfulServer
BundleInclusionRule getBundleInclusionRule();
void setDefaultPreferReturn(PreferReturnEnum theDefaultPreferReturn);
PreferReturnEnum getDefaultPreferReturn();
}

View File

@ -1660,7 +1660,6 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
*
* @see <a href="http://hl7.org/fhir/http.html#ops">HL7 FHIR Specification</a> section on the Prefer header
*/
@Override
public void setDefaultPreferReturn(PreferReturnEnum theDefaultPreferReturn) {
Validate.notNull(theDefaultPreferReturn, "theDefaultPreferReturn must not be null");
myDefaultPreferReturn = theDefaultPreferReturn;