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
commit c8eb104d5f810967be4914c37342e6549a77bee1 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Jun 5 05:23:22 2019 +0200 Fixed CS --- .../java/org/apache/camel/model/RouteFilters.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/camel-core/src/main/java/org/apache/camel/model/RouteFilters.java b/core/camel-core/src/main/java/org/apache/camel/model/RouteFilters.java index cdc86e1..60e51c3 100644 --- a/core/camel-core/src/main/java/org/apache/camel/model/RouteFilters.java +++ b/core/camel-core/src/main/java/org/apache/camel/model/RouteFilters.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 - * <p> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p> + * + * 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. @@ -37,6 +37,13 @@ public final class RouteFilters implements Function<RouteDefinition, Boolean> { private final String[] includes; private final String[] excludes; + private RouteFilters(String include, String exclude) { + this.includesText = include; + this.excludesText = exclude; + this.includes = include != null ? include.split(",") : null; + this.excludes = exclude != null ? exclude.split(",") : null; + } + /** * Used for filtering routes routes matching the given pattern, which follows the following rules: * @@ -59,13 +66,6 @@ public final class RouteFilters implements Function<RouteDefinition, Boolean> { return new RouteFilters(include, exclude); } - private RouteFilters(String include, String exclude) { - this.includesText = include; - this.excludesText = exclude; - this.includes = include != null ? include.split(",") : null; - this.excludes = exclude != null ? exclude.split(",") : null; - } - @Override public Boolean apply(RouteDefinition route) { String id = route.getId();