uber/NullAway

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

Aberta

#1.425 aberto em 1 de jan. de 2026

 (6 comentários) (1 reação) (0 responsável)Java (288 forks)batch import
cleanupgood first issue

Métricas do repositório

Stars
 (3.462 estrelas)
Métricas de merge de PR
 (Mesclagem média 3d 23h) (14 fundiu PRs em 30d)

Description

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.

Guia do colaborador