mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ref graph: avoid public bitmask
GitOrigin-RevId: 2c09059cda67d74cfa5002fb3034e9ddc67b1901
This commit is contained in:
committed by
intellij-monorepo-bot
parent
327821e3b8
commit
6a5b31b002
+3
-2
@@ -19,6 +19,7 @@ import java.util.List;
|
||||
|
||||
public final class RefFunctionalExpressionImpl extends RefJavaElementImpl implements RefFunctionalExpression {
|
||||
private static final int IS_METHOD_REFERENCE_MASK = 0b1_00000000_00000000; // 17th bit
|
||||
private static final int IS_BODY_EMPTY_MASK = 0b10_00000000_00000000; // 18th bit
|
||||
|
||||
RefFunctionalExpressionImpl(@NotNull UExpression expr, @NotNull PsiElement psi, @NotNull RefManager manager) {
|
||||
super(expr, psi, manager);
|
||||
@@ -103,7 +104,7 @@ public final class RefFunctionalExpressionImpl extends RefJavaElementImpl implem
|
||||
@Override
|
||||
public synchronized boolean hasEmptyBody() {
|
||||
LOG.assertTrue(isInitialized());
|
||||
return checkFlag(RefMethodImpl.IS_BODY_EMPTY_MASK);
|
||||
return checkFlag(IS_BODY_EMPTY_MASK);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -155,7 +156,7 @@ public final class RefFunctionalExpressionImpl extends RefJavaElementImpl implem
|
||||
&& (body.getExpressions().isEmpty() || checkIfOnlyCallsSuper(body, lambda.getFunctionalInterfaceType()))) {
|
||||
isEmptyBody = true;
|
||||
}
|
||||
setFlag(isEmptyBody, RefMethodImpl.IS_BODY_EMPTY_MASK);
|
||||
setFlag(isEmptyBody, IS_BODY_EMPTY_MASK);
|
||||
}
|
||||
|
||||
private static boolean checkIfOnlyCallsSuper(@NotNull UBlockExpression body, @Nullable PsiType type) {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ public sealed class RefMethodImpl extends RefJavaElementImpl implements RefMetho
|
||||
private static final int IS_LIBRARY_OVERRIDE_MASK = 0b10_00000000_00000000; // 18th bit
|
||||
private static final int IS_CONSTRUCTOR_MASK = 0b100_00000000_00000000; // 19th bit
|
||||
private static final int IS_ABSTRACT_MASK = 0b1000_00000000_00000000; // 20th bit
|
||||
public static final int IS_BODY_EMPTY_MASK = 0b10000_00000000_00000000; // 21st bit
|
||||
private static final int IS_BODY_EMPTY_MASK = 0b10000_00000000_00000000; // 21st bit
|
||||
private static final int IS_ONLY_CALLS_SUPER_MASK = 0b100000_00000000_00000000; // 22nd bit
|
||||
private static final int IS_RETURN_VALUE_USED_MASK = 0b1000000_00000000_00000000; // 23rd bit
|
||||
private static final int IS_RECORD_ACCESSOR_MASK = 0b10000000_00000000_00000000; // 24th bit
|
||||
|
||||
Reference in New Issue
Block a user