You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/04/14 21:21:21 UTC
svn commit: r528861 -
/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
Author: ivaynberg
Date: Sat Apr 14 12:21:21 2007
New Revision: 528861
URL: http://svn.apache.org/viewvc?view=rev&rev=528861
Log:
cleanup
Modified:
incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
Modified: incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java?view=diff&rev=528861&r1=528860&r2=528861
==============================================================================
--- incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java (original)
+++ incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/MockServletContext.java Sat Apr 14 12:21:21 2007
@@ -103,11 +103,10 @@
// directory,
// and will be cleaned up with a mvn clean
- String uniqueKey = "" + System.currentTimeMillis();
- uniqueKey += "-";
- uniqueKey += String.valueOf(Math.random()).substring(2);
+ final String uniqueKey = String.valueOf(System.currentTimeMillis())
+ + String.valueOf(Math.random()).substring(2);
- File tempDir = createTempDir("wicket" + uniqueKey);
+ final File tempDir = createTempDir("wicket" + uniqueKey);
attributes.put("javax.servlet.context.tempdir", tempDir);
mimeTypes.put("html", "text/html");