jspecify-skill

Solid

Use this skill when asked to perform any of the following actions in a Java project: - To add jspecify support - To prevent NullPointerExceptions - To better handle Nullability This skill will add jspecify dependency, configure Maven or Gradle build to automatically use jspecify for checking Nullability issues.

Testing & QA 171 stars 40 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

Jspecify provides a set of annotations to explicitly declare the nullness expectations of the Java code. ## Add jSpecify support in Maven projects If you are using Maven, then add the jspecify dependency in `pom.xml`. In `pom.xml`, update or add the `nullability-maven-plugin`, to include the following configuration. ```xml <dependencies> <dependency> <groupId>org.jspecify</groupId> <artifactId>jspecify</artifactId> <version>1.0.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>am.ik.maven</groupId> <artifactId>nullability-maven-plugin</artifactId> <version>0.4.2</version> <extensions>true</extensions> <configuration> <checking>tests</checking> <outputDirectory>${project.basedir}/src/main/java</outputDirectory> <testOutputDirectory>${project.basedir}/src/test/java</testOutputDirectory> </configuration> <executions> <execution> <goals> <goal>configure</goal> <goal>generate-package-info</goal> </goals> </execution> </executions> </plugin> </plugins> </build> ``` ## Add jSpecify support in Gradle projects If you are using Gradle, then add the jspecify dependency. In `build.gradle` or `build.gradle.kts`, update or add the following jsp...

Details

Author
sivaprasadreddy
Repository
sivaprasadreddy/sivalabs-agent-skills
Created
6 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category