mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
replace primitive == comparisons with .equals
This commit is contained in:
@@ -251,7 +251,7 @@ public class RefJavaUtilImpl extends RefJavaUtil{
|
||||
|
||||
if (refExpression instanceof PsiMethodReferenceExpression) {
|
||||
PsiType returnType = psiMethod.getReturnType();
|
||||
if (!psiMethod.isConstructor() && returnType != PsiType.VOID) {
|
||||
if (!psiMethod.isConstructor() && !PsiType.VOID.equals(returnType)) {
|
||||
refMethod.setReturnValueUsed(true);
|
||||
addTypeReference(psiFrom, returnType, refFrom.getRefManager());
|
||||
}
|
||||
@@ -263,7 +263,7 @@ public class RefJavaUtilImpl extends RefJavaUtil{
|
||||
);
|
||||
if (call != null) {
|
||||
PsiType returnType = psiMethod.getReturnType();
|
||||
if (!psiMethod.isConstructor() && returnType != PsiType.VOID) {
|
||||
if (!psiMethod.isConstructor() && !PsiType.VOID.equals(returnType)) {
|
||||
if (!(call.getParent() instanceof PsiExpressionStatement)) {
|
||||
refMethod.setReturnValueUsed(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user