Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshuyangzhou2016-06-27 18:07:29 +0000
committershuyangzhou2016-06-27 18:07:29 +0000
commitdd25d522dcb2c0fade6f040d40f1aaa23ee67b3d (patch)
treee0d8f6c0d9f4fcf5a95c4f963f2676f3dfb4fdd0
parent12a11753e4426c3161f183477700d0caa98324eb (diff)
downloadrt.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.java5
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;

Back to the top