This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generate a ternary null checking for a chained call. | |
* a.getB().getC().getD().getE() | |
* => | |
* (a != null | |
&& a.getB() != null | |
&& a.getB().getC() != null | |
&& a.getB().getC().getD() != null | |
&& a.getB().getC().getD().getE() != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.12.1' | |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' | |
} | |
} |