Merge branch 'master' into master-rx-java-2
# Conflicts: # src/main/java/ru/touchin/templates/TouchinApp.java
This commit is contained in:
commit
317bcce28e
|
|
@ -3,7 +3,7 @@ apply plugin: 'me.tatarka.retrolambda'
|
|||
|
||||
android {
|
||||
compileSdkVersion 25
|
||||
buildToolsVersion "25.0.2"
|
||||
buildToolsVersion "25.0.3"
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
|
|
|
|||
|
|
@ -78,8 +78,11 @@ public abstract class GoogleJsonModel extends ApiModel {
|
|||
* @throws ValidationException Exception of validation.
|
||||
*/
|
||||
protected static void validateNotNull(@Nullable final Object object) throws ValidationException {
|
||||
if (isNullOrMissed(object)) {
|
||||
throw new ValidationException("Not nullable object is null or missed at " + Lc.getCodePoint(null, 1));
|
||||
if (isNull(object)) {
|
||||
throw new ValidationException("Not nullable object is null at " + Lc.getCodePoint(null, 1));
|
||||
}
|
||||
if (isMissed(object)) {
|
||||
throw new ValidationException("Not nullable object is missed at " + Lc.getCodePoint(null, 1));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue