cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r591603 - in /cocoon/trunk: blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/samples/ core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/ core/cocoon-core/src/main/java/org/apache/cocoo...
Date Sat, 03 Nov 2007 11:45:27 GMT
Author: felixk
Date: Sat Nov  3 04:45:25 2007
New Revision: 591603

URL: http://svn.apache.org/viewvc?rev=591603&view=rev
Log:
Method invokes toString() method on a String

Calling String.toString() is just a redundant operation. Just use the String.

Modified:
    cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/samples/LuceneCocoonCrawler.java
    cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/BlockConnection.java
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/xml/ParamSaxBuffer.java
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/LinkStatusGenerator.java

Modified: cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/samples/LuceneCocoonCrawler.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/samples/LuceneCocoonCrawler.java?rev=591603&r1=591602&r2=591603&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/samples/LuceneCocoonCrawler.java
(original)
+++ cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-impl/src/main/java/org/apache/cocoon/samples/LuceneCocoonCrawler.java
Sat Nov  3 04:45:25 2007
@@ -469,7 +469,7 @@
             return false;
         }
 
-        final String s = url.toString();
+        final String s = url;
         Iterator i = excludeCrawlingURL.iterator();
         while (i.hasNext()) {
             RE pattern = (RE) i.next();
@@ -499,7 +499,7 @@
             return true;
         }
 
-        final String s = url.toString();
+        final String s = url;
         Iterator i = includeCrawlingURL.iterator();
         while (i.hasNext()) {
             RE pattern = (RE) i.next();

Modified: cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/BlockConnection.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/BlockConnection.java?rev=591603&r1=591602&r2=591603&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/BlockConnection.java
(original)
+++ cocoon/trunk/core/cocoon-blocks-fw/cocoon-blocks-fw-impl/src/main/java/org/apache/cocoon/blocks/BlockConnection.java
Sat Nov  3 04:45:25 2007
@@ -71,7 +71,7 @@
         
         URI blockURI = null;
         try {
-            blockURI = parseBlockURI(new URI(url.toString()));
+            blockURI = parseBlockURI(new URI(url));
         } catch (URISyntaxException e) {
             throw new MalformedURLException("Malformed URI in block source " +
                                             e.getMessage());

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/xml/ParamSaxBuffer.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/xml/ParamSaxBuffer.java?rev=591603&r1=591602&r2=591603&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/xml/ParamSaxBuffer.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/xml/ParamSaxBuffer.java
Sat Nov  3 04:45:25 2007
@@ -218,7 +218,7 @@
         public void toString(StringBuffer result, Map parameters) throws SAXException {
             String value = (String)parameters.get(name);
             if (value != null) {
-                result.append(value.toString());
+                result.append(value);
             }
         }
 

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/LinkStatusGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/LinkStatusGenerator.java?rev=591603&r1=591602&r2=591603&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/LinkStatusGenerator.java
(original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/generation/LinkStatusGenerator.java
Sat Nov  3 04:45:25 2007
@@ -600,7 +600,7 @@
             return false;
         }
 
-        final String s = url.toString();
+        final String s = url;
         Iterator i = excludeCrawlingURL.iterator();
         while (i.hasNext()) {
             RE pattern = (RE) i.next();
@@ -634,7 +634,7 @@
             return true;
         }
 
-        final String s = url.toString();
+        final String s = url;
         Iterator i = includeCrawlingURL.iterator();
         while (i.hasNext()) {
             RE pattern = (RE) i.next();



Mime
View raw message