javax.annotation.Nullable class not found

1

I'm using JDK 8 and I need to use the javax.annotation.Nullable library, but eclipse returns an error saying it does not exist ..

Does anyone know how to get it or what version of the JDK does this library contain?

    
asked by anonymous 25.06.2018 / 19:21

1 answer

2

This class does not belong to Java 8. So you need a external dependency for you can have it available in your project.

If you're using maven, you can add it this way :

<dependency>
    <groupId>com.google.code.findbugs</groupId>
    <artifactId>jsr305</artifactId>
    <version>3.0.2</version>
</dependency>
    
25.06.2018 / 19:24