fixes based on static analysis check with FindBugs#5842
fixes based on static analysis check with FindBugs#5842orpiske merged 8 commits intoapache:mainfrom dk2k:dk2k-components-static-analysis
Conversation
orpiske
left a comment
There was a problem hiding this comment.
Thanks for helping keeping the code code tidy and clean! I added a few notes about the log messages, as it would make it easier for users to figure out what went wrong should they ever happen.
...camel-aws/camel-aws2-s3/src/main/java/org/apache/camel/component/aws2/s3/AWS2S3Producer.java
Outdated
Show resolved
Hide resolved
components/camel-coap/src/main/java/org/apache/camel/coap/CamelCoapResource.java
Outdated
Show resolved
Hide resolved
components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
Outdated
Show resolved
Hide resolved
components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsNormalFileHandler.java
Outdated
Show resolved
Hide resolved
...ts/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelFilterWrapper.java
Outdated
Show resolved
Hide resolved
...ts/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
Outdated
Show resolved
Hide resolved
components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneIndexer.java
Outdated
Show resolved
Hide resolved
components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/JBPMConsumer.java
Outdated
Show resolved
Hide resolved
...ts/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/CamelFilterWrapper.java
Outdated
Show resolved
Hide resolved
components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneIndexer.java
Outdated
Show resolved
Hide resolved
components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsNormalFileHandler.java
Outdated
Show resolved
Hide resolved
orpiske
left a comment
There was a problem hiding this comment.
Thanks for the changes! It's looking better, but the usage of log markers is incorrect. I added some examples, but there may be more.
orpiske
left a comment
There was a problem hiding this comment.
This is looking great, thanks for the changes! I think the only remaining items I see are the commented blocks. Once removing that, we should be good to go.
| // prefer to use endpoint configured over component configured | ||
| if (jettyBinding == null) { | ||
| // unused | ||
| /*if (jettyBinding == null) { |
There was a problem hiding this comment.
I think we can remove this block of code if it's unused. It would make it easier for us when/if bisecting the code in case of problems.
No description provided.