Skip to content

[BUG] It is always displays #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dikam4 opened this issue Dec 2, 2024 · 1 comment
Closed

[BUG] It is always displays #197

dikam4 opened this issue Dec 2, 2024 · 1 comment

Comments

@dikam4
Copy link

dikam4 commented Dec 2, 2024

In file: https://github.com/java-diff-utils/java-diff-utils/blob/master/java-diff-utils/src/main/java/com/github/difflib/UnifiedDiffUtils.java

The method UnifiedDiffUtils.generateOriginalAndDiff there is an error and it displays "expected" instead of "original" for the original file name.

`
String originalFileNameTemp = originalFileName;
String revisedFileNameTemp = originalFileName; // BUG: It has to be revisedFileNameTemp = revisedFileName
if (originalFileNameTemp == null) {
originalFileNameTemp = "original";
}
if (revisedFileNameTemp == null) {
revisedFileNameTemp = "revised";
}

`

Copy link

github-actions bot commented Feb 1, 2025

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant