camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1344595 - /camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
Date Thu, 31 May 2012 08:41:20 GMT
Author: ningjiang
Date: Thu May 31 08:41:20 2012
New Revision: 1344595

URL: http://svn.apache.org/viewvc?rev=1344595&view=rev
Log:
CAMEL-5321 Fix the CS error of ObjectHelper

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java?rev=1344595&r1=1344594&r2=1344595&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java Thu May 31
08:41:20 2012
@@ -906,13 +906,13 @@ public final class ObjectHelper {
      */
     private static String resolveUriPath(String name) {
         String answer = name;
-        if(answer.indexOf("//") > -1) {
+        if (answer.indexOf("//") > -1) {
             answer = answer.replaceAll("//", "/");
         }
-        if(answer.indexOf("../") > -1) {
+        if (answer.indexOf("../") > -1) {
             answer = answer.replaceAll("[A-Za-z0-9]*/\\.\\./", "");
         }
-        if(answer.indexOf("./") > -1) {
+        if (answer.indexOf("./") > -1) {
             answer = answer.replaceAll("\\./", "");
         }
         return answer;



Mime
View raw message