This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 86de8cb26208aab8b35d7fee58978199f502742b Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Thu May 16 09:25:44 2024 +0200 Remove unwanted warning for regex --- core/camel-util/src/main/java/org/apache/camel/util/URISupport.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java b/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java index 15908b52b6d..c8afdcb6f12 100644 --- a/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java +++ b/core/camel-util/src/main/java/org/apache/camel/util/URISupport.java @@ -50,6 +50,7 @@ public final class URISupport { // Match any key-value pair in the URI query string whose key contains // "passphrase" or "password" or secret key (case-insensitive). // First capture group is the key, second is the value. + @SuppressWarnings("RegExpUnnecessaryNonCapturingGroup") private static final Pattern ALL_SECRETS = Pattern.compile( "([?&][^=]*(?:" + SensitiveUtils.getSensitivePattern() + ")[^=]*)=(RAW(([{][^}]*[}])|([(][^)]*[)]))|[^&]*)", Pattern.CASE_INSENSITIVE);