This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 446703e CAMEL-14648: camel-core optimize - CamelURIParser for parsing
almost all commong Camel endpoint URIs in a faster and lighter way than using
java.net.URL.
446703e is described below
commit 446703e2fe4ad57a460698d098478703d6cee9c0
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Mar 3 16:14:30 2020 +0100
CAMEL-14648: camel-core optimize - CamelURIParser for parsing almost all
commong Camel endpoint URIs in a faster and lighter way than using java.net.URL.
---
.../org/apache/camel/util/UnsafeUriCharactersEncoder.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git
a/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
b/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
index 4b3eb85..cf59db3 100644
---
a/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
+++
b/core/camel-util/src/main/java/org/apache/camel/util/UnsafeUriCharactersEncoder.java
@@ -95,21 +95,6 @@ public final class UnsafeUriCharactersEncoder {
return !unsafeCharactersFastParser.get(ch);
}
- public static boolean isSafeFastParser(String s) {
- int len = s.length();
- for (int i = 0; i < len; i++) {
- char ch = s.charAt(i);
- if (ch > 128) {
- // must be an ascii char
- return false;
- }
- if (unsafeCharactersFastParser.get(ch)) {
- return false;
- }
- }
- return true;
- }
-
public static String encode(String s) {
return encode(s, unsafeCharactersRfc1738);
}