Skip to content

Fix NullAway 0.13.1 compatibility#4338

Closed
andimarek wants to merge 1 commit intomasterfrom
fix-nullaway-0.13.1
Closed

Fix NullAway 0.13.1 compatibility#4338
andimarek wants to merge 1 commit intomasterfrom
fix-nullaway-0.13.1

Conversation

@andimarek
Copy link
Copy Markdown
Member

Summary

  • Fix 3 NullAway errors that occur with NullAway 0.13.1 (blocking PR Bump com.uber.nullaway:nullaway from 0.12.10 to 0.13.1 #4317)
  • ArrayValue.deepCopy() / ObjectValue.deepCopy(): inline assertNotNull(deepCopy(...)) to avoid @Nullable local variable being passed where @NonNull is required
  • MergedField.Builder.build(): replace assertNotNull on @Nullable Builder field with explicit null check

Test plan

  • Verified compilation passes with NullAway 0.12.10
  • Verified compilation passes with NullAway 0.13.1

🤖 Generated with Claude Code

- ArrayValue/ObjectValue: inline assertNotNull(deepCopy(...)) to avoid
  @nullable local variable being passed where @nonnull is required
- MergedField: replace assertNotNull on @nullable Builder field with
  explicit null check to satisfy stricter NullAway type inference

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@andimarek andimarek force-pushed the fix-nullaway-0.13.1 branch from 169f27c to dda29af Compare March 11, 2026 01:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 11, 2026

Test Report

Test Results

Java Version Total Passed Failed Errors Skipped
Java 11 5704 (±0) 5648 (±0) 0 (±0) 0 (±0) 56 (±0)
Java 17 5704 (±0) 5647 (±0) 0 (±0) 0 (±0) 57 (±0)
Java 21 5704 (±0) 5647 (±0) 0 (±0) 0 (±0) 57 (±0)
Java 25 5704 (±0) 5647 (±0) 0 (±0) 0 (±0) 57 (±0)
jcstress 32 (±0) 32 (±0) 0 (±0) 0 (±0) 0 (±0)
Total 22848 (±0) 22621 (±0) 0 (±0) 0 (±0) 227 (±0)

Code Coverage (Java 25)

Metric Covered Missed Coverage vs Master
Lines 28740 3120 90.2% ±0.0%
Branches 8352 1510 84.7% ±0.0%
Methods 7686 1222 86.3% ±0.0%

Changed Class Coverage (2 classes)

Class Line Branch Method
g.e.MergedField
$Builder
-0.7% 🔴 -1.3% 🔴 ±0.0%
g.l.ObjectValue +3.5% 🟢 ±0.0% ±0.0%
MergedField.Builder — method details
Method Line Branch
build 90.9% (-9.1% 🔴) 75.0% (-8.3% 🔴)

Full HTML report: build artifact jacoco-html-report

Updated: 2026-03-11 01:42:27 UTC

@andimarek
Copy link
Copy Markdown
Member Author

No longer needed — staying on NullAway 0.12.10 for now. See #4339.

@andimarek andimarek closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant