8 questions
2 votes
1 answer
99 views
Why doesn't it issue error when i have make a field NonNull annotation and assign it null
I uses nullaway and jspecify in spring web application.My code is like below import org.jspecify.annotations.NonNull; import org.jspecify.annotations.NullUnmarked; @NullUnmarked public class Foo { ...
0 votes
1 answer
153 views
Run NullAway analyzer but encounter assertion error on NullAway initialization
I'm attempting to detect null pointer exceptions in a Java file using NullAway. However, NullAway cannot be runned due to an assertion error related to its initialization: java.lang.AssertionError: ...
0 votes
1 answer
157 views
maven compile error when installing nullaway
I'm facing to a problem below. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------...
1 vote
1 answer
665 views
How to use Lombok's RequiredArgsConstructor with Nullaway?
We're trying to add "Nullaway" (https://github.com/uber/NullAway) to our repo. This is a tool that assumes everything not annotated with @Nullable can't be null and enforces it in compile ...
2 votes
1 answer
194 views
Kotlin's smart cast fails simple non-nullability deduction
Trying to understand why Kotlin's smart cast doesn't trigger for a fairly simple use case: val x: Int? = 1 val notNull: Boolean = x != null if (notNull) { val y: Int = x // fails to smart cast }...
1 vote
0 answers
568 views
Error Prone and NullAway Illegal Access Exception
I am incorporating null away and error prone into my app and have added the following to my top-level build.gradle buildscript { repositories { google() maven { url 'https://...
0 votes
2 answers
1k views
In a Maven build how do I configure Nullaway to exclude test classes?
In a Maven build how do I configure Nullaway to exclude test classes? Right now it's firing on code that specifically checks that NullPointerExceptions are thrown in the right places. The code to be ...
1 vote
0 answers
79 views
Non annotated methos as nullable by default
Is it possible to configure the IntelliJ or maybe the NullAway to consider non annotated method as Nullable by default? e.g. The following method: context.getResources().getString(R.string.app_name);...