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 d1b8ce10f97c19c1b400c1ece1aa045099046f5c Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri May 17 14:31:53 2019 +0200 CAMEL-13390 - Fixed CS in the example --- .../main/java/org/apache/camel/example/jira/AddIssueRoute.java | 8 ++++---- .../java/org/apache/camel/example/jira/AttachFileRoute.java | 8 ++++---- .../java/org/apache/camel/example/jira/NewCommentsRoute.java | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AddIssueRoute.java b/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AddIssueRoute.java index a0cb672..f7a0b94 100644 --- a/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AddIssueRoute.java +++ b/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AddIssueRoute.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -6,7 +6,7 @@ * (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, @@ -31,12 +31,12 @@ import static org.apache.camel.component.jira.JiraConstants.ISSUE_TYPE_NAME; @Component public class AddIssueRoute extends RouteBuilder { - private static final Logger logger = LoggerFactory.getLogger(AddIssueRoute.class); + private static final Logger LOG = LoggerFactory.getLogger(AddIssueRoute.class); @Override public void configure() { - logger.info(" >>>>>>>>>>>>>>>>>>>>> jira example - add new issue"); + LOG.info(" >>>>>>>>>>>>>>>>>>>>> jira example - add new issue"); // change the fields accordinly to your target jira server from("timer://foo?fixedRate=true&period=50000") .setHeader(ISSUE_PROJECT_KEY, () -> "COM") diff --git a/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AttachFileRoute.java b/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AttachFileRoute.java index 7e3df09..2b0ad52 100644 --- a/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AttachFileRoute.java +++ b/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/AttachFileRoute.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -6,7 +6,7 @@ * (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, @@ -26,11 +26,11 @@ import static org.apache.camel.component.jira.JiraConstants.ISSUE_KEY; @Component public class AttachFileRoute extends RouteBuilder { - private static final Logger _log = LoggerFactory.getLogger(AttachFileRoute.class); + private static final Logger LOG = LoggerFactory.getLogger(AttachFileRoute.class); @Override public void configure() { - _log.info(" >>>>>>>>>>>>>>>>>>>>> jira example - add attachment"); + LOG.info(" >>>>>>>>>>>>>>>>>>>>> jira example - add attachment"); // change the fields accordinly to your target jira server from("file:///A_valid_directory?fileName=my_file.png&noop=true&delay=50000") .setHeader(ISSUE_KEY, () -> "MYP-13") diff --git a/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/NewCommentsRoute.java b/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/NewCommentsRoute.java index 709c625..0965764 100644 --- a/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/NewCommentsRoute.java +++ b/examples/camel-example-jira/src/main/java/org/apache/camel/example/jira/NewCommentsRoute.java @@ -1,4 +1,4 @@ -/** +/* * 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. @@ -6,7 +6,7 @@ * (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, @@ -25,17 +25,17 @@ import org.springframework.stereotype.Component; @Component public class NewCommentsRoute extends RouteBuilder { - private static final Logger logger = LoggerFactory.getLogger(NewCommentsRoute.class); + private static final Logger LOG = LoggerFactory.getLogger(NewCommentsRoute.class); @Override public void configure() { - logger.info(" >>>>>>>>>>>>>>>>>>>>> jira example - retrieve only new comments"); + LOG.info(" >>>>>>>>>>>>>>>>>>>>> jira example - retrieve only new comments"); // change the fields accordinly to your target jira server from("jira://newComments?jql=RAW(project=COM AND resolution = Unresolved)&delay=4000") .process(exchange -> { Comment comment = (Comment) exchange.getIn().getBody(); - logger.info("new jira comment id: {} - by: {}: {}", comment.getId(), comment.getAuthor().getDisplayName(), + LOG.info("new jira comment id: {} - by: {}: {}", comment.getId(), comment.getAuthor().getDisplayName(), comment.getBody()); }) .to("mock:result");