This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d48ccb41a24451e0e78b405db36b4e4ca6a0a495
Author: Michael Pätzold <michael.paetz...@aoe.com>
AuthorDate: Thu Sep 12 15:42:14 2019 +0200

    CAMEL-13962: correct code style audit errors
---
 .../main/java/org/apache/camel/util/OgnlHelper.java  |  2 +-
 .../java/org/apache/camel/util/OgnlHelperTest.java   | 20 ++++++++++++++++++--
 2 files changed, 19 insertions(+), 3 deletions(-)

diff --git 
a/core/camel-util/src/main/java/org/apache/camel/util/OgnlHelper.java 
b/core/camel-util/src/main/java/org/apache/camel/util/OgnlHelper.java
index 564df2a..701ddcf 100644
--- a/core/camel-util/src/main/java/org/apache/camel/util/OgnlHelper.java
+++ b/core/camel-util/src/main/java/org/apache/camel/util/OgnlHelper.java
@@ -280,7 +280,7 @@ public final class OgnlHelper {
         }
 
         String last = methods.isEmpty() ? null : methods.get(methods.size() - 
1);
-        if (parenthesisBracketCnt>0 && last != null) {
+        if (parenthesisBracketCnt > 0 && last != null) {
             // there is an unclosed parenthesis bracket on the last method, so 
it should end with a parenthesis
             if (last.contains("(") && !last.endsWith(")")) {
                 throw new IllegalArgumentException("Method should end with 
parenthesis, was " + last);
diff --git 
a/core/camel-util/src/test/java/org/apache/camel/util/OgnlHelperTest.java 
b/core/camel-util/src/test/java/org/apache/camel/util/OgnlHelperTest.java
index 6d2874a..2329d3f 100644
--- a/core/camel-util/src/test/java/org/apache/camel/util/OgnlHelperTest.java
+++ b/core/camel-util/src/test/java/org/apache/camel/util/OgnlHelperTest.java
@@ -1,10 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.util;
 
+import java.util.List;
+
 import org.junit.Assert;
 import org.junit.Test;
 
-import java.util.List;
-
 public class OgnlHelperTest extends Assert {
 
     /**

Reply via email to