Use Intrinsics.checkNotNullParameter to throw NPE in parameter null checks
Similarly to previous commits, this method was unused, so we're changing its semantics in API version >= 1.4. #KT-22275 In Progress
This commit is contained in:
@@ -126,9 +126,9 @@ public class Intrinsics {
|
||||
}
|
||||
}
|
||||
|
||||
public static void checkNotNullParameter(Object value, String message) {
|
||||
public static void checkNotNullParameter(Object value, String paramName) {
|
||||
if (value == null) {
|
||||
throw sanitizeStackTrace(new IllegalArgumentException(message));
|
||||
throw sanitizeStackTrace(new NullPointerException(paramName));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user