diff options
author | shuyangzhou | 2016-06-27 18:07:29 +0000 |
---|---|---|
committer | shuyangzhou | 2016-06-27 18:07:29 +0000 |
commit | dd25d522dcb2c0fade6f040d40f1aaa23ee67b3d (patch) | |
tree | e0d8f6c0d9f4fcf5a95c4f963f2676f3dfb4fdd0 | |
parent | 12a11753e4426c3161f183477700d0caa98324eb (diff) | |
download | rt.equinox.bundles-dd25d522dcb2c0fade6f040d40f1aaa23ee67b3d.tar.gz rt.equinox.bundles-dd25d522dcb2c0fade6f040d40f1aaa23ee67b3d.tar.xz rt.equinox.bundles-dd25d522dcb2c0fade6f040d40f1aaa23ee67b3d.zip |
LPS-66847 Don't repeatedly create the same HttpSessionEvent
Signed-off-by: shuyangzhou <shuyang.zhou@liferay.com>
-rw-r--r-- | bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java index d713f6b0f..aa742a111 100644 --- a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java +++ b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/ContextController.java @@ -1210,10 +1210,13 @@ public class ContextController { return previousHttpSessionAdaptor; } + HttpSessionEvent httpSessionEvent = new HttpSessionEvent( + httpSessionAdaptor); + for (HttpSessionListener listener : eventListeners.get( HttpSessionListener.class)) { - listener.sessionCreated(new HttpSessionEvent(httpSessionAdaptor)); + listener.sessionCreated(httpSessionEvent); } return httpSessionAdaptor; |