From dc05d371fc4de3cc89c51ae1018ddeae311fdca0 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Mon, 2 Dec 2024 11:25:08 +0100 Subject: [PATCH] [java-analysis] PropertyUtil: NotNull annotations GitOrigin-RevId: 6219506a1494f02cba391c08a5de650ef4e94814 --- .../src/com/intellij/psi/util/PropertyUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/java-analysis-impl/src/com/intellij/psi/util/PropertyUtil.java b/java/java-analysis-impl/src/com/intellij/psi/util/PropertyUtil.java index 3d0ce066298f..8e9685efb7aa 100644 --- a/java/java-analysis-impl/src/com/intellij/psi/util/PropertyUtil.java +++ b/java/java-analysis-impl/src/com/intellij/psi/util/PropertyUtil.java @@ -20,17 +20,17 @@ public final class PropertyUtil extends PropertyUtilBase { } @Nullable - public static PsiField getFieldOfGetter(PsiMethod method) { + public static PsiField getFieldOfGetter(@NotNull PsiMethod method) { return getFieldOfGetter(method, true); } @Nullable - private static PsiField getFieldOfGetter(PsiMethod method, boolean useIndex) { + private static PsiField getFieldOfGetter(@NotNull PsiMethod method, boolean useIndex) { return getFieldOfGetter(method, () -> getGetterReturnExpression(method), useIndex); } @Nullable - public static PsiField getFieldOfGetter(PsiMethod method, Supplier returnExprSupplier, boolean useIndex) { + public static PsiField getFieldOfGetter(@NotNull PsiMethod method, Supplier returnExprSupplier, boolean useIndex) { PsiField field = getFieldImpl(method, returnExprSupplier, useIndex); if (field == null || !checkFieldLocation(method, field)) return null; final PsiType returnType = method.getReturnType();