Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ public void doSortBeforeSaving() {
}

public boolean isPathFullyIgnored(String relFileOrDirNameHash) {
for (ExcludeSignatureItem next : signatures) {
if (next.getFileHash().equals(relFileOrDirNameHash) && next.getTextHash().equals(SKIP_FULL_FILE_HASH)) return true;
}
return signatures.stream()
.anyMatch(item -> item.getFileHash().equals(relFileOrDirNameHash)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method chain formatting could be improved for better readability.

Suggested change
.anyMatch(item -> item.getFileHash().equals(relFileOrDirNameHash)
.anyMatch(item -> item.getFileHash().equals(relFileOrDirNameHash)
&& item.getTextHash().equals(SKIP_FULL_FILE_HASH));

#deepseek-review:inline

&& item.getTextHash().equals(SKIP_FULL_FILE_HASH));
}

return false;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public void setFileHash(String fileHash) {
this.fileHash = fileHash;
}

/**
* Override equals method for the ExcludeSegnatureItem-class
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in class name in comment - should be 'ExcludeSignatureItem'

Suggested change
* Override equals method for the ExcludeSegnatureItem-class
* Override equals method for the ExcludeSignatureItem-class

#deepseek-review:inline

**/
@Override
public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use instanceof pattern matching for cleaner null and type checking

Suggested change
if (o == null || getClass() != o.getClass()) return false;
if (!(o instanceof ExcludeSignatureItem other)) return false;

#deepseek-review:inline

Expand Down