Fix AbstractTraceInterceptor null-safety annotations

Closes gh-22435
This commit is contained in:
Sebastien Deleuze
2019-02-21 15:58:49 +01:00
parent e47f7ef7b5
commit f19d7c0375

View File

@@ -124,6 +124,7 @@ public abstract class AbstractTraceInterceptor implements MethodInterceptor, Ser
* @see #invokeUnderTrace(org.aopalliance.intercept.MethodInvocation, org.apache.commons.logging.Log)
*/
@Override
@Nullable
public Object invoke(MethodInvocation invocation) throws Throwable {
Log logger = getLoggerForInvocation(invocation);
if (isInterceptorEnabled(invocation, logger)) {
@@ -242,6 +243,7 @@ public abstract class AbstractTraceInterceptor implements MethodInterceptor, Ser
* @see #writeToLog(Log, String)
* @see #writeToLog(Log, String, Throwable)
*/
@Nullable
protected abstract Object invokeUnderTrace(MethodInvocation invocation, Log logger) throws Throwable;
}