mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +07:00
cleanup: get rid of usages of deprecated constants from PsiType (IDEA-309438)
GitOrigin-RevId: 3373eb8b47af51b9f6dd71e565f773d69e8a3218
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0a1df5c00a
commit
8ce3039acf
@@ -419,7 +419,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
PsiType returnType = uMethod.getReturnType();
|
||||
if (!uMethod.isConstructor()) {
|
||||
final PsiType type = getFunctionalInterfaceType(callableReference);
|
||||
if (!PsiType.VOID.equals(LambdaUtil.getFunctionalInterfaceReturnType(type))) {
|
||||
if (!PsiTypes.voidType().equals(LambdaUtil.getFunctionalInterfaceReturnType(type))) {
|
||||
refMethod.setReturnValueUsed(true);
|
||||
addTypeReference(uFrom, returnType, refMethod.getRefManager());
|
||||
}
|
||||
@@ -429,7 +429,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
}
|
||||
if (uExpression instanceof ULiteralExpression) { //references in literal expressions
|
||||
PsiType returnType = uMethod.getReturnType();
|
||||
if (!uMethod.isConstructor() && !PsiType.VOID.equals(returnType)) {
|
||||
if (!uMethod.isConstructor() && !PsiTypes.voidType().equals(returnType)) {
|
||||
refMethod.setReturnValueUsed(true);
|
||||
addTypeReference(uFrom, returnType, refMethod.getRefManager());
|
||||
}
|
||||
@@ -437,7 +437,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
|
||||
}
|
||||
|
||||
PsiType returnType = uMethod.getReturnType();
|
||||
if (!uMethod.isConstructor() && !PsiType.VOID.equals(returnType)) {
|
||||
if (!uMethod.isConstructor() && !PsiTypes.voidType().equals(returnType)) {
|
||||
PsiExpression expression = ObjectUtils.tryCast(uExpression.getJavaPsi(), PsiExpression.class);
|
||||
if (expression == null || !ExpressionUtils.isVoidContext(expression)) {
|
||||
refMethod.setReturnValueUsed(true);
|
||||
|
||||
Reference in New Issue
Block a user