Author: andreas
Date: Sun Aug 19 14:29:12 2007
New Revision: 567477
URL: http://svn.apache.org/viewvc?rev=567477&view=rev
Log:
Removed execution time check from FallbackSourceFactory (GregorianCalendar is expensive)
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java
Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java?rev=567477&r1=567476&r2=567477&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java Sun Aug 19 14:29:12 2007
@@ -19,10 +19,7 @@
import java.io.IOException;
import java.net.MalformedURLException;
-import java.text.SimpleDateFormat;
import java.util.Arrays;
-import java.util.Date;
-import java.util.GregorianCalendar;
import java.util.Map;
import org.apache.avalon.framework.context.ContextException;
@@ -69,8 +66,6 @@
public Source getSource(final String location, Map parameters) throws IOException,
MalformedURLException {
- long startTime = new GregorianCalendar().getTimeInMillis();
-
// Remove the protocol and the first '//'
int pos = location.indexOf("://");
@@ -163,13 +158,6 @@
if (sourceResolver != null) {
this.manager.release(sourceResolver);
}
- }
-
- if (getLogger().isDebugEnabled()) {
- long endTime = new GregorianCalendar().getTimeInMillis();
- long time = endTime - startTime;
- getLogger().debug("Processing time: "
- + new SimpleDateFormat("hh:mm:ss.S").format(new Date(time)));
}
return source;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.