camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Fixed CS
Date Tue, 05 Jul 2016 07:32:31 GMT
Repository: camel
Updated Branches:
  refs/heads/master a1d9c36ff -> 4df454afc


Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4df454af
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4df454af
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4df454af

Branch: refs/heads/master
Commit: 4df454afc28acf4cecbd30d3f88b64ba02b9e0ce
Parents: a1d9c36
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Jul 5 09:31:16 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Jul 5 09:32:11 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/util/UnsafeUriCharactersEncoder.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4df454af/camel-core/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
b/camel-core/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
index 610876d..8c81be8 100644
--- a/camel-core/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
+++ b/camel-core/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
@@ -32,7 +32,7 @@ public final class UnsafeUriCharactersEncoder {
     private static BitSet unsafeCharactersHttp;
     private static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8',
'9', 'A', 'B', 'C',
                                               'D', 'E', 'F', 'a', 'b', 'c', 'd', 'e', 'f'};
-    private static Pattern rawPattern = Pattern.compile("RAW\\([^\\)]+\\)");
+    private static final Pattern RAW_PATTERN = Pattern.compile("RAW\\([^\\)]+\\)");
 
     static {
         unsafeCharactersRfc1738 = new BitSet(256);
@@ -95,7 +95,7 @@ public final class UnsafeUriCharactersEncoder {
     }
 
     private static List<Pair> checkRAW(String s) {
-        Matcher matcher = rawPattern.matcher(s);
+        Matcher matcher = RAW_PATTERN.matcher(s);
         List<Pair> answer = new ArrayList<Pair>();
         // Check all occurrences
         while (matcher.find()) {


Mime
View raw message