[camel] branch master updated: Camel-Mock: Fixed CS

2020-03-26 Thread acosentino
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


The following commit(s) were added to refs/heads/master by this push:
 new 1417772  Camel-Mock: Fixed CS
1417772 is described below

commit 141777214a0f2518b50ab1cd93ab628705c8c31b
Author: Andrea Cosentino 
AuthorDate: Thu Mar 26 09:23:44 2020 +0100

Camel-Mock: Fixed CS
---
 .../java/org/apache/camel/component/mock/MockExpressionClause.java| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockExpressionClause.java
 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockExpressionClause.java
index ba74616b..e3d1397 100644
--- 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockExpressionClause.java
+++ 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/MockExpressionClause.java
@@ -40,6 +40,8 @@ import org.apache.camel.support.ExpressionToPredicateAdapter;
 public class MockExpressionClause implements Expression, Predicate {
 private MockExpressionClauseSupport delegate;
 
+private volatile Expression expr;
+
 public MockExpressionClause(T result) {
 this.delegate = new MockExpressionClauseSupport<>(result);
 }
@@ -426,8 +428,6 @@ public class MockExpressionClause implements Expression, 
Predicate {
 return delegate.getExpressionType();
 }
 
-private volatile Expression expr;
-
 @Override
 public void init(CamelContext context) {
 if (expr == null) {



[camel] branch master updated: Camel-Mock: Fixed CS

2019-08-05 Thread acosentino
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


The following commit(s) were added to refs/heads/master by this push:
 new 9d46108  Camel-Mock: Fixed CS
9d46108 is described below

commit 9d46108b66684d82750a5ad01460ab5bc1c16720
Author: Andrea Cosentino 
AuthorDate: Mon Aug 5 08:09:33 2019 +0200

Camel-Mock: Fixed CS
---
 .../java/org/apache/camel/component/mock/AssertionClauseTask.java | 8 
 .../main/java/org/apache/camel/component/mock/AssertionTask.java  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClauseTask.java
 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClauseTask.java
index b613908..e65bae9 100644
--- 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClauseTask.java
+++ 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionClauseTask.java
@@ -1,13 +1,13 @@
-/**
+/*
  * 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
- * 
+ *
+ *  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.
diff --git 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionTask.java
 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionTask.java
index 347ba0d..e5022b6 100644
--- 
a/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionTask.java
+++ 
b/components/camel-mock/src/main/java/org/apache/camel/component/mock/AssertionTask.java
@@ -26,6 +26,6 @@ public interface AssertionTask extends Runnable {
  *
  * @param index the n'th received message
  */
-public void assertOnIndex(int index);
+void assertOnIndex(int index);
 
 }