Claude Warren created RAT-371: --------------------------------- Summary: Rat uses collections of URLs which are reported as a problem by spotbugs Key: RAT-371 URL: https://issues.apache.org/jira/browse/RAT-371 Project: Apache Rat Issue Type: Bug Components: core engine Affects Versions: 0.16.1 Reporter: Claude Warren
As noted in the Spotbugs documentation: {quote} h3. Dm: The equals and hashCode methods of URL are blocking (DMI_BLOCKING_METHODS_ON_URL)[|https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#dm-the-equals-and-hashcode-methods-of-url-are-blocking-dmi-blocking-methods-on-url] The equals and hashCode method of URL perform domain name resolution, this can result in a big performance hit. See [http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html] for more information. Consider using {{java.net.URI}} instead. {quote} The goal of this ticket is to change all stored URLs to URIs. The primary change is in the ReportConfiguration but it will touch both UIs and the core classes. -- This message was sent by Atlassian Jira (v8.20.10#820010)