Polishing

This commit is contained in:
Sam Brannen
2019-03-02 16:17:58 +01:00
parent d4f544d42f
commit abda6a6c66
2 changed files with 6 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,7 +33,6 @@ import org.springframework.beans.BeansException;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.beans.factory.support.ManagedList;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.context.support.ApplicationObjectSupport;
@@ -519,15 +518,13 @@ public class ComplexWebApplicationContext extends StaticWebApplicationContext {
}
public static class TestApplicationListener implements ApplicationListener<ApplicationEvent> {
public static class TestApplicationListener implements ApplicationListener<RequestHandledEvent> {
public int counter = 0;
@Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof RequestHandledEvent) {
this.counter++;
}
public void onApplicationEvent(RequestHandledEvent event) {
this.counter++;
}
}