uber/NullAway

Replace calls to deprecated `com.google.errorprone.CompilationTestHelper#addSourceFile` in tests

Aperta

#1425 aperta il 1 gen 2026

 (6 commenti) (1 reazione) (0 assegnatari)Java (288 fork)batch import
cleanupgood first issue

Metriche repository

Star
 (3462 stelle)
Metriche merge PR
 (Merge medio 3g 23h) (14 PR mergiate in 30 g)

Descrizione

E.g., here:

https://github.com/uber/NullAway/blob/f1c302eea74a6535bc167af2ba79cb941858c4f2/nullaway/src/test/java/com/uber/nullaway/UnannotatedTests.java#L12-L12

We should call com.google.errorprone.CompilationTestHelper#addSourceLines instead and copy the relevant source into a text block, and then delete the separate source files. We can also remove any related @SuppressWarnings("deprecation") annotations.

Guida contributor