-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix citation key table #13151
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
Fix citation key table #13151
Conversation
Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com> Co-authored-by: Christoph <siedlerkiller@gmail.com>
...va/org/jabref/logic/quality/consistency/BibliographyConsistencyCheckResultTxtWriterTest.java
Outdated
Show resolved
Hide resolved
...n/java/org/jabref/logic/quality/consistency/BibliographyConsistencyCheckResultTxtWriter.java
Show resolved
Hide resolved
return fieldComparison; | ||
} | ||
} | ||
assert !it1.hasNext() && !it2.hasNext(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using assertions for control flow is not recommended as they can be disabled at runtime, leading to unexpected behavior. Consider using a different approach to ensure iterators are exhausted.
return 1; | ||
} | ||
|
||
assert e1HasCitationKey && e2HasCitationKey; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using assertions for control flow is not recommended as they can be disabled at runtime. Consider using a more robust method to ensure both entries have citation keys.
@trag-bot didn't find any issues in the code! ✅✨ |
Fixes #13013
No CHANGELOG, because feature is not yet released
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if change is visible to the user)