2 ms·
I tried: @Test public void foo() { bar(null); } void bar(@NonNull String param) { System.out.println(param); } All versio
by mrkeen 4y ago
I tried:
@Test
public void foo() {
bar(null);
}
void bar(@NonNull String param) {
System.out.println(param);
}
All versions of that annotation let the null right through. I tried with:
import lombok.NonNull;
import javax.validation.constraints.NotNull;
import io.micronaut.core.annotation.NonNull;
import org.springframework.lang.NonNull;
import reactor.util.annotation.NonNull;
- za3faran 4y agoDid you try https://github.com/uber/NullAway https://github.com/uber/NullAway?