cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r367052 - in /cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components: flow/WebContinuationDataBean.java pipeline/AbstractProcessingPipeline.java
Date Sun, 08 Jan 2006 17:11:51 GMT
Author: antonio
Date: Sun Jan  8 09:11:47 2006
New Revision: 367052

URL: http://svn.apache.org/viewcvs?rev=367052&view=rev
Log:
Fix typos.

Modified:
    cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/flow/WebContinuationDataBean.java
    cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java

Modified: cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/flow/WebContinuationDataBean.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/flow/WebContinuationDataBean.java?rev=367052&r1=367051&r2=367052&view=diff
==============================================================================
--- cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/flow/WebContinuationDataBean.java
(original)
+++ cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/flow/WebContinuationDataBean.java
Sun Jan  8 09:11:47 2006
@@ -80,7 +80,7 @@
 
     public String getType() {
         if (wc.getUserObject().getClass().getName().indexOf(
-                "FOM_WebContinuation") > 0) {
+                "FOM_WebContinuation") > -1) {
             return TYPE_FLOWSCRIPT;
         }
         return TYPE_JAVAFLOW;

Modified: cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java?rev=367052&r1=367051&r2=367052&view=diff
==============================================================================
--- cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
(original)
+++ cocoon/trunk/cocoon-core/src/main/java/org/apache/cocoon/components/pipeline/AbstractProcessingPipeline.java
Sun Jan  8 09:11:47 2006
@@ -865,9 +865,9 @@
     protected void handleException(Exception e) throws ProcessingException {
         // Check if the client aborted the connection
         if (e instanceof SocketException) {
-            if (e.getMessage().indexOf("reset") > 0
-                    || e.getMessage().indexOf("aborted") > 0
-                    || e.getMessage().indexOf("connection abort") > 0) {
+            if (e.getMessage().indexOf("reset") > -1
+                    || e.getMessage().indexOf("aborted") > -1
+                    || e.getMessage().indexOf("connection abort") > -1) {
                 throw new ConnectionResetException("Connection reset by peer", e);
             }
         } else if (e instanceof IOException) {



Mime
View raw message