You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor @Contract parsing logic to avoid redundancies. #424
Not started: parsing each contract once into a structured clause list (the ImmutableList<ContractClause> suggested in the Added contract check support #312 review). Every caller still re-splits String clauses on each call.
I can open a PR for the second item if that helps; the third is the remaining substance of this issue.
Activity
Fix crash in @contract dataflow init for zero-argument methods (#1701)
vlsi commentedon Oct 22, 2026
Status check against master (3035507):
ContractUtils, and Fix crash in @Contract dataflow init for zero-argument methods #1701 (0.14.0) addedContractUtils.parseAntecedentand switchedContractCheckHandlerandContractNullnessStoreInitializerto it.ContractHandlersplit clauses by hand, repeating the body ofparseAntecedentand trimming the consequent themselves:isSingleArgNullImpliesFalseMethod(Add support for filtering null objects from streams #1597) andonMatchMethodReference(Honor @Contract when a @Nullable method is used as a method reference #1679). Routing both throughContractUtilsis a small change.ImmutableList<ContractClause>suggested in the Added contract check support #312 review). Every caller still re-splitsStringclauses on each call.I can open a PR for the second item if that helps; the third is the remaining substance of this issue.