This is an automated email from the ASF dual-hosted git repository. pottlinger pushed a commit to branch feature/RAT-326 in repository https://gitbox.apache.org/repos/asf/creadur-rat.git
commit 8eca241fc25ca407d8ead76bd5f9951762b0cf2b Author: P. Ottlinger <pottlin...@apache.org> AuthorDate: Fri Nov 10 22:55:46 2023 +0100 RAT-326: Fix javadoc errors and minor typos --- .../rat/configuration/XMLConfigurationReader.java | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/apache-rat-core/src/main/java/org/apache/rat/configuration/XMLConfigurationReader.java b/apache-rat-core/src/main/java/org/apache/rat/configuration/XMLConfigurationReader.java index 3143732a..b73dc4e6 100644 --- a/apache-rat-core/src/main/java/org/apache/rat/configuration/XMLConfigurationReader.java +++ b/apache-rat-core/src/main/java/org/apache/rat/configuration/XMLConfigurationReader.java @@ -57,27 +57,27 @@ import org.xml.sax.SAXException; /** * A class that reads the XML configuration file format. * <p> - * {@code <rat-config>}<br/> - * {@code <licenses>}<br/> - * {@code <license id=id name=name >}<br/> - * {@code <notes></notes>}<br/> - * {@code <text> </text>}<br/> - * {@code <copyright start='' end='' owner=''/>}<br/> - * {@code <spdx></spdx> }<br/> - * {@code <and> <matcher/>...</and>}<br/> - * {@code <or> <matcher/>...</or> }<br/> - * {@code <matcher_ref refid='' />}<br/> - * {@code <not><matcher /></not>}<br/> - * {@code </license>}<br/> - * {@code </licenses>}<br/> - * {@code <approved>}<br/> - * {@code <family refid=''>}<br/> - * {@code </approved>}<br/> - * {@code <matchers>}<br/> - * {@code <matcher className=''/>}<br/> - * {@code <matcher className=''/>}<br/> - * {@code </matchers>}<br/> - * {@code </rat-config>}<br/> + * {@code <rat-config>}<br> + * {@code <licenses>}<br> + * {@code <license id=id name=name >}<br> + * {@code <notes></notes>}<br> + * {@code <text> </text>}<br> + * {@code <copyright start='' end='' owner=''/>}<br> + * {@code <spdx></spdx> }<br> + * {@code <and> <matcher/>...</and>}<br> + * {@code <or> <matcher/>...</or> }<br> + * {@code <matcher_ref refid='' />}<br> + * {@code <not><matcher /></not>}<br> + * {@code </license>}<br> + * {@code </licenses>}<br> + * {@code <approved>}<br> + * {@code <family refid=''>}<br> + * {@code </approved>}<br> + * {@code <matchers>}<br> + * {@code <matcher className=''/>}<br> + * {@code <matcher className=''/>}<br> + * {@code </matchers>}<br> + * {@code </rat-config>}<br> * </p> */ @@ -112,7 +112,7 @@ public class XMLConfigurationReader implements LicenseReader, MatcherReader { private final SortedSet<String> approvedFamilies; /** - * Constructs the XML configuration read. + * Constructs the XML configuration reader. */ public XMLConfigurationReader() { try { @@ -295,7 +295,7 @@ public class XMLConfigurationReader implements LicenseReader, MatcherReader { public SortedSet<ILicense> readLicenses() { readFamilies(); readMatcherBuilders(); - if (licenses.size() == 0) { + if (licenses.isEmpty()) { nodeListConsumer(document.getElementsByTagName(LICENSE), x -> licenses.add(parseLicense(x))); document = null; }