Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

sebhoss/null-analysis

Repository files navigation

Null-Analysis Discuss on Google Groups Chat on IRC

CC Zero Maven Central Read JavaDocs Repository size Open Hub statistics

Build Status Code Coverage Coverity Scan Result Codacy Code Quality Can this project be forked? Is this thing still maintained? Bounties on open tickets

Utility library for null analysis in Java projects.

Usage

Convert any @Nullable reference from legacy code to a @NonNull reference by using the Nullsafe utility class:

@Nullable Object myObject = ...
@NonNull Object nonNullObject = Nullsafe.nonNull(myObject);

An IllegalArgumentException is thrown in case myObject is null.

Integration

To use this project just declare the following dependency inside your POM:

<dependency>
  <groupId>de.xn--ho-hia.quality</groupId>
  <artifactId>null-analysis</artifactId>
  <version>${version.null-analysis}</version>
</dependency

Replace ${version.null-analysis} with the latest release. This project follows the semantic versioning guidelines.

Compatibility

This project is compatible with the following Java versions:

Table 1. Java compatibility
3.X.Y

Java 8

License

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.

You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.

About

Java utility related to NULL analysis

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published