Repository: wicket
Updated Branches:
  refs/heads/master b9bd66453 -> abbd93f04


Remove some unnecessary array instantiations


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/abbd93f0
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/abbd93f0
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/abbd93f0

Branch: refs/heads/master
Commit: abbd93f0409df0a041144994e9ae2bfd3ad6b601
Parents: b9bd664
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Wed Jul 13 23:24:39 2016 +0200
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Wed Jul 13 23:25:12 2016 +0200

----------------------------------------------------------------------
 .../org/apache/wicket/page/PageAccessSynchronizer.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/abbd93f0/wicket-core/src/main/java/org/apache/wicket/page/PageAccessSynchronizer.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/page/PageAccessSynchronizer.java 
b/wicket-core/src/main/java/org/apache/wicket/page/PageAccessSynchronizer.java
index 7986632..86fbb8b 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/page/PageAccessSynchronizer.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/page/PageAccessSynchronizer.java
@@ -142,9 +142,10 @@ public class PageAccessSynchronizer implements Serializable
                        if (logger.isWarnEnabled())
                        {
                                logger.warn(
-                                       "Thread '{}' failed to acquire lock to 
page with id '{}', attempted for {} out of allowed {}. The thread that holds 
the lock has name '{}'.",
-                                       new Object[] { thread.getName(), 
pageId, start.elapsedSince(), timeout,
-                                                       
previous.thread.getName() });
+                                       "Thread '{}' failed to acquire lock to 
page with id '{}', attempted for {} out of allowed {}." +
+                                                       " The thread that holds 
the lock has name '{}'.",
+                                       thread.getName(), pageId, 
start.elapsedSince(), timeout,
+                                                       
previous.thread.getName());
                                if (Application.exists())
                                {
                                        ThreadDumpStrategy strategy = 
Application.get()
@@ -338,7 +339,7 @@ public class PageAccessSynchronizer implements Serializable
                        if (isDebugEnabled)
                        {
                                logger.debug("{} waiting for lock to page {} 
for {}",
-                                       new Object[] { thread.getName(), 
pageId, Duration.milliseconds(remaining) });
+                                       thread.getName(), pageId, 
Duration.milliseconds(remaining));
                        }
                        try
                        {
@@ -346,7 +347,6 @@ public class PageAccessSynchronizer implements Serializable
                        }
                        catch (InterruptedException e)
                        {
-                               // TODO better exception
                                throw new RuntimeException(e);
                        }
                }

Reply via email to