Fix the Sonar Blocker: Performance - Maps and sets of URLs can be performance
hogs
----------------------------------------------------------------------------------
Key: CAMEL-3647
URL: https://issues.apache.org/jira/browse/CAMEL-3647
Project: Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 2.6.0
Reporter: Christian Müller
Assignee: Christian Müller
Fix For: 2.7.0
The Camel Sonar Pilot lists 4 blocker for Camel [1]. All in
org.apache.camel.impl.converter.AnnotationTypeConverterLoader because it use
the URL.equals() and URL.hashCode() methods.You can find the explanation in [2]
why this is not a good idea. I would like to change it url.toURI()? Any doubt?
[1]
http://sonar.apache.org/drilldown/violations/org.apache.camel:camel?priority=BLOCKER#
[2]
http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira