Skip to content

Instantly share code, notes, and snippets.

@aaronoe
Created December 16, 2018 20:57
Show Gist options
  • Select an option

  • Save aaronoe/cfe43bac55c5b7f33a938e97f4b5b721 to your computer and use it in GitHub Desktop.

Select an option

Save aaronoe/cfe43bac55c5b7f33a938e97f4b5b721 to your computer and use it in GitHub Desktop.
@NotNull
private static String notNull = "Hello";
@Nullable
private static String maybeNull = "Hello";
@NotNull
public static final String getNotNull() {
return notNull;
}
public static final void setNotNull(@NotNull String var0) {
Intrinsics.checkParameterIsNotNull(var0, "<set-?>");
notNull = var0;
}
@JvmName(
name = "getNullableProperty"
)
@Nullable
public static final String getNullableProperty() {
return maybeNull;
}
@JvmName(
name = "setNullableProperty"
)
public static final void setNullableProperty(@Nullable String var0) {
maybeNull = var0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment