Un-deprecate a method that should not have been deprecated

This commit is contained in:
James Agnew 2019-05-04 09:49:18 -04:00
parent c251b44590
commit 2e50bf6bb0
1 changed files with 6 additions and 7 deletions

View File

@ -1386,10 +1386,10 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
} }
/** /**
* Registers an interceptor * Registers an interceptor. This method is a convenience method which calls
* <code>getInterceptorService().registerInterceptor(theInterceptor);</code>
* *
* @param theInterceptor The interceptor * @param theInterceptor The interceptor, must not be null
* @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.
*/ */
public void registerInterceptor(Object theInterceptor) { public void registerInterceptor(Object theInterceptor) {
Validate.notNull(theInterceptor, "Interceptor can not be null"); Validate.notNull(theInterceptor, "Interceptor can not be null");
@ -1637,12 +1637,11 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
} }
/** /**
* Unregisters an interceptor * Unregisters an interceptor. This method is a convenience method which calls
* <code>getInterceptorService().unregisterInterceptor(theInterceptor);</code>
* *
* @param theInterceptor The interceptor * @param theInterceptor The interceptor, must not be null
* @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
public void unregisterInterceptor(Object 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);