From 254a95ba1aab9afc6b977228be453e8cadd35eff Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Fri, 27 Jun 2014 17:34:52 +0400 Subject: [PATCH] Improve non-null assertion messages --- core/runtime.jvm/src/kotlin/jvm/internal/Intrinsics.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/runtime.jvm/src/kotlin/jvm/internal/Intrinsics.java b/core/runtime.jvm/src/kotlin/jvm/internal/Intrinsics.java index 585ceea8ef2..efaee67176e 100644 --- a/core/runtime.jvm/src/kotlin/jvm/internal/Intrinsics.java +++ b/core/runtime.jvm/src/kotlin/jvm/internal/Intrinsics.java @@ -49,7 +49,7 @@ public class Intrinsics { public static void checkFieldIsNotNull(Object value, String className, String fieldName) { if (value == null) { IllegalStateException exception = - new IllegalStateException("Field specified as non-null contains null: " + className + "." + fieldName); + new IllegalStateException("Field specified as non-null is null: " + className + "." + fieldName); throw sanitizeStackTrace(exception); } } @@ -64,7 +64,7 @@ public class Intrinsics { String methodName = caller.getMethodName(); IllegalArgumentException exception = - new IllegalArgumentException("Parameter specified as non-null contains null: " + + new IllegalArgumentException("Parameter specified as non-null is null: " + "method " + className + "." + methodName + ", parameter " + paramName); throw sanitizeStackTrace(exception);