A couple of compile glitches

This commit is contained in:
James Agnew 2019-04-24 21:35:49 -04:00
parent 5a9fa4e549
commit f3f5c570b1
5 changed files with 9 additions and 7 deletions

View File

@ -107,9 +107,10 @@ public class FhirServerConfig extends BaseJavaConfigDstu3 {
/** /**
* This interceptor adds some pretty syntax highlighting in responses when a browser is detected * This interceptor adds some pretty syntax highlighting in responses when a browser is detected
* @return
*/ */
@Bean(autowire = Autowire.BY_TYPE) @Bean(autowire = Autowire.BY_TYPE)
public IServerInterceptor responseHighlighterInterceptor() { public ResponseHighlighterInterceptor responseHighlighterInterceptor() {
ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor(); ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor();
return retVal; return retVal;
} }

View File

@ -158,8 +158,8 @@
<reporting> <reporting>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupid>org.apache.maven.plugins</groupid>
<artifactId>maven-project-info-reports-plugin</artifactId> <artifactid>maven-project-info-reports-plugin</artifactid>
<configuration> <configuration>
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>

View File

@ -78,9 +78,10 @@ public class FhirServerConfigR4 extends BaseJavaConfigR4 {
/** /**
* This interceptor adds some pretty syntax highlighting in responses when a browser is detected * This interceptor adds some pretty syntax highlighting in responses when a browser is detected
* @return
*/ */
@Bean(autowire = Autowire.BY_TYPE) @Bean(autowire = Autowire.BY_TYPE)
public IServerInterceptor responseHighlighterInterceptor() { public ResponseHighlighterInterceptor responseHighlighterInterceptor() {
ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor(); ResponseHighlighterInterceptor retVal = new ResponseHighlighterInterceptor();
return retVal; return retVal;
} }

View File

@ -1643,7 +1643,7 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
* @deprecated As of HAPI FHIR 3.8.0, use {@link #getInterceptorService()} to access the interceptor service. You can register and unregister interceptors using this service. * @deprecated As of HAPI FHIR 3.8.0, use {@link #getInterceptorService()} to access the interceptor service. You can register and unregister interceptors using this service.
*/ */
@Deprecated @Deprecated
public void unregisterInterceptor(IServerInterceptor theInterceptor) { public void unregisterInterceptor(Object theInterceptor) {
Validate.notNull(theInterceptor, "Interceptor can not be null"); Validate.notNull(theInterceptor, "Interceptor can not be null");
getInterceptorService().unregisterInterceptor(theInterceptor); getInterceptorService().unregisterInterceptor(theInterceptor);
} }

View File

@ -47,13 +47,13 @@ public class ServeMediaResourceRawInterceptorTest {
@Before @Before
public void before() { public void before() {
myInterceptor = new ServeMediaResourceRawInterceptor(); myInterceptor = new ServeMediaResourceRawInterceptor();
ourServlet.registerInterceptor(myInterceptor); ourServlet.getInterceptorService().registerInterceptor(myInterceptor);
} }
@After @After
public void after() { public void after() {
ourNextResponse = null; ourNextResponse = null;
ourServlet.unregisterInterceptor(myInterceptor); ourServlet.getInterceptorService().unregisterInterceptor(myInterceptor);
} }
@Test @Test