{"id":54075,"library":"jsr305","title":"JSR 305 Annotations","description":"JSR305 Annotations for Findbugs provides annotations like @Nullable and @Nonnull for static analysis tools.","status":"active","version":"3.0.2","language":"java","source_language":null,"source_url":"https://code.google.com/p/jsr-305/","tags":["annotations","static-analysis","nullable"],"install":[{"cmd":"<dependency>\n  <groupId>com.google.code.findbugs</groupId>\n  <artifactId>jsr305</artifactId>\n  <version>3.0.2</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.google.code.findbugs:jsr305:3.0.2'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Nullable","correct":"javax.annotation.Nullable"}],"quickstart":{"code":"import javax.annotation.Nullable;\n\npublic class Example {\n    public void process(@Nullable String input) {\n        if (input != null) {\n            System.out.println(input.length());\n        }\n    }\n}","lang":"java","description":"Using @Nullable to indicate a parameter can be null."},"warnings":[{"fix":"Consider using org.jspecify:jspecify or jakarta.annotation:jakarta.annotation-api for modern alternatives.","message":"JSR 305 annotations are not part of the Java standard library and may cause compatibility issues with newer Java versions.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'305':2 'analysi':16,21 'annot':3,5,9,18 'findbug':7 'jsr':1 'jsr305':4 'like':10 'nonnul':13 'nullabl':11,22 'provid':8 'static':15,20 'static-analysi':19 'tool':17","created_at":"2026-06-15T08:33:03.904962+00:00","updated_at":"2026-06-15T08:33:03.904962+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://findbugs.sourceforge.net/","github":null,"docs":"https://appdoc.app/artifact/com.google.code.findbugs/jsr305/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}