Fix Nullwarnings - C (Mark bst package as nonnull by default)#15663
Conversation
Review Summary by Qodo(Agentic_describe updated until commit b5906c5)Mark bst package as nonnull by default and remove null handling
WalkthroughsDescription• Mark bst package as nonnull by default with @NullMarked annotation • Remove null handling code, enforce non-null contracts throughout • Replace null values with empty strings in string operations • Improve null safety in BstVMContext and related classes • Refactor test access methods and enhance code clarity Diagramflowchart LR
A["@NullMarked Annotations"] --> B["Remove Null Checks"]
B --> C["Empty String Defaults"]
C --> D["Improved Type Safety"]
E["BstVM API Changes"] --> F["getContext Method"]
F --> D
File Changes1. jablib/src/main/java/org/jabref/logic/bst/BstFunctions.java
|
Code Review by Qodo
1.
|
This reverts commit f4fcf7a.
|
Persistent review updated to latest commit b5906c5 |
* upstream/main: (775 commits) Chore(deps): Bump com.konghq:unirest-modules-gson in /versions (#15682) Chore(deps): Bump org.glassfish.jaxb:jaxb-runtime in /versions (#15681) Update dependency com.konghq:unirest-modules-gson to v4.9.0 (#15679) Integrate with SearchRxiv (#15373) Fix requirements (#15600) refactor: less objects during writing (#15677) Fix: suppress WARN for empty or blank column name in MainTableColumnModel#parse() (#15576) New Crowdin updates (#15676) Chore(deps): Bump com.github.ben-manes.caffeine:caffeine in /versions (#15673) Fix Nullwarnings - C (Mark bst package as nonnull by default) (#15663) Chore(deps): Bump com.github.javaparser:javaparser-symbol-solver-core (#15674) Chore(deps): Bump com.github.javaparser:javaparser-core in /versions (#15672) New Crowdin updates (#15669) Fix OpenRewrite (#15670) Udpate heylogs (and fix CHANGELOG.md) (#15671) Improve security and prevent shell injection for push2applications (#15628) Fix depdency analysis (#15668) Always use CI-local "gradle", instead of gradlew (#15667) Change OpenRewrite task to use rewriteDryRun (#15664) Add small documentation to parameter (#15666) ...
Related issues and pull requests
Followup to #14802
PR Description
See qodo comment
Steps to test
Run JabRef, see no more nullaway warnings for bst packages
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)