You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sebastian Hoß 5beec0f791 add CHANGELOG entry for 3.0.2 3 years ago
AUTHORS add waiver & sign it 4 years ago
build/docker update build environment 4 years ago
src Revert "add nonsense asserts in order to make error-prone happy.." 4 years ago
.gitignore ignore ansible markers 3 years ago
.travis.yml add coverity scan 4 years ago
CHANGELOG.asciidoc add CHANGELOG entry for 3.0.2 3 years ago
CODE_OF_CONDUCT.asciidoc convert markdown -> asciidoc 4 years ago
CONTRIBUTING.asciidoc add CHANGELOG, CoC, and CONTRIBUTING 4 years ago
LICENSE use latest parent 4 years ago
Makefile fix update-maintenance-badge goal 3 years ago
README.asciidoc Update maintenance badge 3 years ago
bnd.bnd align package name w/ maven coordinates 4 years ago
maven-version-rules.xml add m-version-rules 4 years ago
pom.xml declare version 3.0.2 3 years ago


= Null-Analysis image:["Discuss on Google Groups", link="!forum/metio"] image:["Chat on IRC", link=""]
Sebastian Hoß <[@sebhoss]>
:github-org: sebhoss
:project-name: null-analysis
:project-group: de.xn--ho-hia.quality
:coverity-project: 9331
:codacy-project: 693c2e0c381042b69f1f150a74069bad

image:["CC Zero", link=""]
pass:[<span class="image"><a class="image" href=""><img src="" alt="Maven Central"></a></span>]
pass:[<span class="image"><a class="image" href=""><img src="" alt="Read JavaDocs"></a></span>]
image:{github-org}/{project-name}&style=flat-square["Repository size"]
image:{project-name}/widgets/project_thin_badge.gif["Open Hub statistics", link="{project-name}"]

image:{github-org}/{project-name}/master.svg?style=flat-square["Build Status", link="{github-org}/{project-name}"]
image:{github-org}/{project-name}/master.svg?style=flat-square["Code Coverage", link="{github-org}/{project-name}"]
image:{coverity-project}.svg?style=flat-square["Coverity Scan Result", link="{github-org}-{project-name}"]
image:{codacy-project}.svg?style=flat-square["Codacy Code Quality", link="{project-name}"]
image:["Can this project be forked?", link="{github-org}&r={project-name}"]
image:["Is this thing still maintained?"]
image:["Bounties on open tickets", link=""]

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:

[source, java]
@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:

[source, xml, subs="attributes,verbatim"]

Replace `${version.null-analysis}` with the pass:[<a href="">latest release</a>]. This project follows the link:[semantic versioning guidelines].

=== Compatibility

This project is compatible with the following Java versions:

.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

== Mirrors