You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2008/04/27 16:49:52 UTC
svn commit: r651962 -
/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
Author: knopp
Date: Sun Apr 27 07:49:49 2008
New Revision: 651962
URL: http://svn.apache.org/viewvc?rev=651962&view=rev
Log:
removed unused import
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java?rev=651962&r1=651961&r2=651962&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/pagestore/DiskPageStore.java Sun Apr 27 07:49:49 2008
@@ -42,7 +42,6 @@
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.protocol.http.SecondLevelCacheSessionStore.IPageStore;
import org.apache.wicket.protocol.http.SecondLevelCacheSessionStore.ISerializationAwarePageStore;
-import org.apache.wicket.protocol.http.pagestore.AbstractPageStore.SerializedPage;
import org.apache.wicket.protocol.http.pagestore.PageWindowManager.PageWindow;
import org.apache.wicket.protocol.http.pagestore.SerializedPagesCache.SerializedPageWithSession;
import org.apache.wicket.util.lang.Bytes;
@@ -147,7 +146,7 @@
/**
* @return list of {@link PageMapEntry} for this session
*/
- public List /* <PageMapEntry> */<PageMapEntry>getPageMapEntryList()
+ public List /* <PageMapEntry> */<PageMapEntry> getPageMapEntryList()
{
return Collections.unmodifiableList(pageMapEntryList);
}
@@ -645,7 +644,7 @@
}
}
- private Map /* <String, SessionEntry> */<String, SessionEntry>sessionIdToEntryMap = new ConcurrentHashMap<String, SessionEntry>();
+ private Map /* <String, SessionEntry> */<String, SessionEntry> sessionIdToEntryMap = new ConcurrentHashMap<String, SessionEntry>();
/**
* Returns the SessionEntry for session with given id. If the entry does not yet exist and the
@@ -844,10 +843,10 @@
// map from session id to serialized page list
// this contains lists for all active sessions
- private final Map /* <String, List<SerializedPage>> */<String, List>pagesToSaveAll = new ConcurrentHashMap<String, List>();
+ private final Map /* <String, List<SerializedPage>> */<String, List> pagesToSaveAll = new ConcurrentHashMap<String, List>();
// contains list of serialized pages to be saved - only non empty lists
- private final Map /* <String, List<SerializedPage>> */<String, List>pagesToSaveActive = new ConcurrentHashMap<String, List>();
+ private final Map /* <String, List<SerializedPage>> */<String, List> pagesToSaveActive = new ConcurrentHashMap<String, List>();
/**
* Returns the list of pages to be saved for the specified session id. If the list is not found,
@@ -886,11 +885,14 @@
{
for (Iterator i = list.iterator(); i.hasNext();)
{
- try {
+ try
+ {
SerializedPage page = (SerializedPage)i.next();
getSessionEntry(sessionId, true).savePage(page);
- } catch (Exception e) {
- // We have to catch the exception here to process the other entries,
+ }
+ catch (Exception e)
+ {
+ // We have to catch the exception here to process the other entries,
// otherwise there would be a big memory leak
log.error("Error flushing page", e);
}