descriptionJava utility related to NULL analysis
repository URLhttps://github.com/sebhoss/null-analysis.git
ownerrepoorcz@shoss.de
last changeSun, 8 Jan 2017 17:49:08 +0000 (8 18:49 +0100)
last refreshThu, 21 Nov 2024 08:20:30 +0000 (21 09:20 +0100)
content tags
add:
README.asciidoc
= Null-Analysis image:https://img.shields.io/badge/email-%40metio-brightgreen.svg?style=social&label=mail["Discuss on Google Groups", link="https://groups.google.com/forum/#!forum/metio"] image:https://img.shields.io/badge/irc-%23metio.wtf-brightgreen.svg?style=social&label=IRC["Chat on IRC", link="http://webchat.freenode.net/?channels=metio.wtf"]
Sebastian Hoß <http://seb.xn--ho-hia.de/[@sebhoss]>
:github-org: sebhoss
:project-name: null-analysis
:project-group: de.xn--ho-hia.quality
:coverity-project: 9331
:codacy-project: 693c2e0c381042b69f1f150a74069bad

image:https://img.shields.io/badge/license-cc%20zero-000000.svg?style=flat-square["CC Zero", link="http://creativecommons.org/publicdomain/zero/1.0/"]
pass:[<span class="image"><a class="image" href="https://maven-badges.herokuapp.com/maven-central/de.xn--ho-hia.quality/null-analysis"><img src="https://img.shields.io/maven-central/v/de.xn--ho-hia.quality/null-analysis.svg?style=flat-square" alt="Maven Central"></a></span>]
pass:[<span class="image"><a class="image" href="https://www.javadoc.io/doc/de.xn--ho-hia.quality/null-analysis"><img src="https://www.javadoc.io/badge/de.xn--ho-hia.quality/null-analysis.svg?style=flat-square&color=blue" alt="Read JavaDocs"></a></span>]
image:https://reposs.herokuapp.com/?path={github-org}/{project-name}&style=flat-square["Repository size"]
image:https://www.openhub.net/p/{project-name}/widgets/project_thin_badge.gif["Open Hub statistics", link="https://www.openhub.net/p/{project-name}"]

image:https://img.shields.io/travis/{github-org}/{project-name}/master.svg?style=flat-square["Build Status", link="https://travis-ci.org/{github-org}/{project-name}"]
image:https://img.shields.io/coveralls/{github-org}/{project-name}/master.svg?style=flat-square["Code Coverage", link="https://coveralls.io/github/{github-org}/{project-name}"]
image:https://img.shields.io/coverity/scan/{coverity-project}.svg?style=flat-square["Coverity Scan Result", link="https://scan.coverity.com/projects/{github-org}-{project-name}"]
image:https://img.shields.io/codacy/grade/{codacy-project}.svg?style=flat-square["Codacy Code Quality", link="https://www.codacy.com/app/mail_7/{project-name}"]
image:https://img.shields.io/badge/forkable-yes-brightgreen.svg?style=flat-square["Can this project be forked?", link="https://basicallydan.github.io/forkability/?u={github-org}&r={project-name}"]
image:https://img.shields.io/maintenance/yes/2017.svg?style=flat-square["Is this thing still maintained?"]
image:https://img.shields.io/bountysource/team/metio/activity.svg?style=flat-square["Bounties on open tickets", link="https://www.bountysource.com/teams/metio"]

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"]
----
<dependency>
  <groupId>{project-group}</groupId>
  <artifactId>{project-name}</artifactId>
  <version>${version.null-analysis}</version>
</dependency
----

Replace `${version.null-analysis}` with the pass:[<a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3Ade.xn--ho-hia.quality%20a%3Anull-analysis">latest release</a>]. This project follows the link:http://semver.org/[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 http://creativecommons.org/publicdomain/zero/1.0/.

== Mirrors

* https://github.com/sebhoss/{project-name}
* https://bitbucket.org/sebhoss/{project-name}
* https://gitlab.com/sebastian.hoss/{project-name}
* http://v2.pikacode.com/sebhoss/{project-name}
* http://repo.or.cz/{project-name}.git
shortlog
2017-01-08 Sebastian Hoßadd CHANGELOG entry for 3.0.2master
2017-01-08 Sebastian Hoßdeclare version 3.0.2null-analysis-3.0.2-20170108184519
2017-01-08 Sebastian HoßUpdate to latest parent
2017-01-08 Sebastian HoßUpdate maintenance badge
2017-01-08 Sebastian Hoßfix update-maintenance-badge goal
2017-01-08 Sebastian Hoßignore ansible markers
2016-07-16 Sebastian Hoßadd pikacode mirror
2016-07-09 Sebastian Hoßadd maintenance goal to update maintenance badge
2016-07-09 Sebastian Hconvert markdown -> asciidoc
2016-07-03 Sebastian Hoßfix changelog links
2016-07-03 Sebastian Hoßfix forkability title
2016-07-03 Sebastian Hoßfix badge
2016-07-03 Sebastian Hoßadd more badges
2016-07-03 Sebastian Hoßadd CHANGELOG, CoC, and CONTRIBUTING
2016-07-02 Sebastian Hoßsign commits
2016-07-02 Sebastian Hoßreorder badges
...
tags
7 years ago null-analysis-3.0.2-20170108184519 [maven-scm] copy for tag null-analy...
8 years ago null-analysis-3.0.1-20160702153702 [maven-scm] copy for tag null-analy...
8 years ago null-analysis-3.0.0-20160626185251 [maven-scm] copy for tag null-analy...
10 years ago null-analysis-2.0.0 [maven-release-plugin] copy for...
10 years ago null-analysis-1.0.0 [maven-release-plugin] copy for...
heads
7 years ago master