2

Platform: Windows

Eclipse Version: http://download.eclipse.org/eclipse/downloads/drops4/S-4.3M7-201305020800/

Test Case:

public class Test {

}

Error: A default nullness annotation has not been specified for the type Test

I have null analysis enabled.

Could you please let me know what the error message means and how to fix it.

Thanks,

Gudge.

0

1 Answer 1

4

I found the answer. It is somewhat related to How to use NonNullByDefault on a package.

One creates a package-info.java file and puts the following: @org.eclipse.jdt.annotation.NonNullByDefault(true).

Hope it helps people in future.

Thanks

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.