Minor: add contract annotation
This commit is contained in:
@@ -738,6 +738,7 @@ public class KtPsiUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@Contract("_, !null -> !null")
|
||||||
public static KtModifierList replaceModifierList(@NotNull KtModifierListOwner owner, @Nullable KtModifierList modifierList) {
|
public static KtModifierList replaceModifierList(@NotNull KtModifierListOwner owner, @Nullable KtModifierList modifierList) {
|
||||||
KtModifierList oldModifierList = owner.getModifierList();
|
KtModifierList oldModifierList = owner.getModifierList();
|
||||||
if (modifierList == null) {
|
if (modifierList == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user