This commit is contained in:
Johnny Lim
2018-02-20 05:47:01 +09:00
committed by Phillip Webb
parent cc9a5b72e1
commit 88b184ca23
14 changed files with 27 additions and 29 deletions

View File

@@ -113,8 +113,8 @@ public class WebMvcMetricsFilter extends OncePerRequestFilter {
private void filterAndRecordMetrics(HttpServletRequest request,
HttpServletResponse response, FilterChain filterChain)
throws IOException, ServletException, NestedServletException {
Object handler = null;
throws IOException, ServletException {
Object handler;
try {
handler = getHandler(request);
}
@@ -149,7 +149,7 @@ public class WebMvcMetricsFilter extends OncePerRequestFilter {
private void filterAndRecordMetrics(HttpServletRequest request,
HttpServletResponse response, FilterChain filterChain, Object handler)
throws IOException, ServletException, NestedServletException {
throws IOException, ServletException {
TimingContext timingContext = TimingContext.get(request);
if (timingContext == null) {
timingContext = startAndAttachTimingContext(request, handler);