This is an automated email from the ASF dual-hosted git repository.

Claudenw pushed a commit to branch fix-DocumentName-issues
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git


The following commit(s) were added to refs/heads/fix-DocumentName-issues by 
this push:
     new 8c0f9ebd cleaned up Sonatype issues
8c0f9ebd is described below

commit 8c0f9ebddf3645254294a8c4b917117dde5d0880
Author: Claude Warren <[email protected]>
AuthorDate: Sun Jun 21 18:13:23 2026 +0100

    cleaned up Sonatype issues
---
 .../src/main/java/org/apache/rat/document/DocumentName.java           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/apache-rat-core/src/main/java/org/apache/rat/document/DocumentName.java 
b/apache-rat-core/src/main/java/org/apache/rat/document/DocumentName.java
index a24cfc05..1f949824 100644
--- a/apache-rat-core/src/main/java/org/apache/rat/document/DocumentName.java
+++ b/apache-rat-core/src/main/java/org/apache/rat/document/DocumentName.java
@@ -615,8 +615,8 @@ public class DocumentName implements 
Comparable<DocumentName> {
             if (result == 0) {
                 result = this.data.separator.compareTo(otherData.separator);
                 if (result == 0) {
-                    if (new 
HashSet<>(this.data.roots).containsAll(other.data.roots)) {
-                        result = new 
HashSet<>(other.data.roots).containsAll(this.data.roots) ? 0 : 1;
+                    if (new 
HashSet<>(this.data.roots).containsAll(otherData.roots)) {
+                        result = new 
HashSet<>(otherData.roots).containsAll(this.data.roots) ? 0 : 1;
                     } else {
                         result = -1;
                     }

Reply via email to