# null-check
**Repository Path**: mirrors_vy/null-check
## Basic Information
- **Project Name**: null-check
- **Description**: Validates @Nonnull method arguments at runtime using Spring AOP.
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-19
- **Last Updated**: 2025-09-13
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
This project implements a [Spring AOP](http://docs.spring.io/spring/docs/current/spring-framework-reference/html/aop.html)
driven runtime null check for `javax.annotation.Nonnull` annotated method parameters.
Internally, a `@Before` pointcut is used to intercept methods that have one or more `@Nonnull` annotated parameters
and check that their values are non-null. This functionality is provided by `nullCheck` AspectJ advice in
`com.vlkan.nullcheck.monitor.NullMonitor` class.
Dependencies
============
Using Spring Boot, you can easily setup your project by adding the following dependencies to your `pom.xml`:
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-aop
com.google.code.findbugs
jsr305
3.0.0
For those who do not want to use Spring Boot, they are free to add individual dependencies manually.
Usage
=====
Copy `com.vlkan.nullcheck.monitor.NullMonitor` to your project, under the directory where you keep your `@Aspect`s -- or
just simply go with `monitor` directory. Whenever you use a method parameter with `@Nonnull` annotation, it will be
intercepted by the aspect.
License
=======
The [null-check](https://github.com/vy/null-check/) by [Volkan Yazıcı](http://vlkan.com/) is licensed under the
[Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
[](http://creativecommons.org/licenses/by/4.0/)