Kotlin

A 4-post collection

Page 1 of 1

Mockito mocking parameterized class in Kotlin

If you try to mock parameterized class in Kotlin with Mockito val mockMyClass = mock<MyClass<String>>(MyClass<String>::class.java) »

saiday saiday on Kotlin, Mockito 24 April 2018

“Incompatible types” Calling Kotlin class with generic interface from Java

// Interface from Java public interface JavaInterface<T> { void process(T var1); } // Class from Kotlin class KotlinClass : JavaInterface<List<String>> { override »

saiday saiday on Kotlin 24 April 2018

Which nullness annotation you should use on Android?

I noticed that calling some Android SDK method from Kotlin I got Platform Type instead of null-safety type even Android SDK .java file contains @Nullable annotation. »

saiday saiday on android, Kotlin 04 April 2018

Kotlin compiler unresolved reference on Java classes

Unresolved reference: JavaClass1 Unresolved reference: JavaClass2 Unresolved reference: JavaClass3 Unresolved reference: JavaClass4 Unresolved reference: JavaClass5 Unresolved reference: JavaClass6 Unresolved reference: JavaClass7 ... Some Java classes cannot be »

saiday saiday on JVM, Kotlin, Java 04 January 2018
Page 1 of 1
Imnotyourson © 2025
Proudly published with Ghost