Null Analysis

Code related to NULL analysis

License

License

GroupId

GroupId

com.github.sebhoss
ArtifactId

ArtifactId

null-analysis
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Null Analysis
Code related to NULL analysis
Project URL

Project URL

https://github.com/sebhoss/null-analysis
Source Code Management

Source Code Management

https://github.com/sebhoss/null-analysis

Download null-analysis

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.sebhoss/null-analysis/ -->
<dependency>
    <groupId>com.github.sebhoss</groupId>
    <artifactId>null-analysis</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.sebhoss/null-analysis/
implementation 'com.github.sebhoss:null-analysis:2.0.0'
// https://jarcasting.com/artifacts/com.github.sebhoss/null-analysis/
implementation ("com.github.sebhoss:null-analysis:2.0.0")
'com.github.sebhoss:null-analysis:jar:2.0.0'
<dependency org="com.github.sebhoss" name="null-analysis" rev="2.0.0">
  <artifact name="null-analysis" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.sebhoss', module='null-analysis', version='2.0.0')
)
libraryDependencies += "com.github.sebhoss" % "null-analysis" % "2.0.0"
[com.github.sebhoss/null-analysis "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.eclipse.jdt : org.eclipse.jdt.annotation jar

Project Modules

There are no modules declared in this project.

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/.

Versions

Version
2.0.0
1.0.0