alex
07/16/2019, 11:57 AM@Value
public final class Url {
@NonNull
private URL url;
@NonNull
private byte[] signature;
}
but in Kotlin it's always treated like ByteArray!
. Apart from that, NonNull is marked with warning: primitive type members cannot be annotated.
Any idea what could be wrong? NonNull annotations are from checker framework.kralli
07/16/2019, 12:09 PMorg.jetbrains.annotations.NotNull
annotation. Maybe you should try the these ones instead https://mvnrepository.com/artifact/org.jetbrains/annotations/17.0.0arekolek
07/16/2019, 12:15 PMandroidx.annotation.NonNull
toopublic interface Url {
@NonNull
URL getUrl();
void setUrl(@NonNull URL url);
@NonNull
byte[] getSignature();
void setSignature(@NonNull byte[] signature);
}
assuming it’s what @Value
would dokralli
07/16/2019, 12:18 PMalex
07/16/2019, 1:12 PM