Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 852 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 852 Bytes

Custom nullability Lint check

Check if method parameters and method return value are annotated with nullability annotations:

  • Nullable
  • NonNull
  • NotNull

Note: this library does not add any methods to your result apk. It was made as aar dependency just to enable the check in Android Studio automatically.

Tested on Android Studio 2.2.2, IntelliJ IDEA 2016.2.5.

Download

Currently available on OSS repo

repositories {
    maven {
        url 'https://oss.sonatype.org/content/groups/public'
    }
}

Add library as a dependency:

compile 'com.github.rzhukov:nullability-lint:0.1.0-SNAPSHOT'

Usage

Nothing special. Just get this library, refresh and compile your gradle project. Then you'll be able to see something like this:

Lint message