mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Java: make reference-built check atomic
GitOrigin-RevId: 7c944450b4742f4eb9dcdc10685e00d1e233e81e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
69ca01169a
commit
dd412d7e0d
@@ -2818,7 +2818,6 @@ a:com.intellij.codeInspection.reference.RefElementImpl
|
||||
- setInitialized(Z):V
|
||||
- setPermanentEntry(Z):V
|
||||
- setReachable(Z):V
|
||||
- setReferencesBuilt(Z):V
|
||||
a:com.intellij.codeInspection.reference.RefEntityImpl
|
||||
- com.intellij.openapi.util.UserDataHolderBase
|
||||
- com.intellij.codeInspection.reference.RefEntity
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.codeInspection.reference;
|
||||
|
||||
import com.intellij.codeInspection.SuppressionUtil;
|
||||
@@ -21,7 +21,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class RefElementImpl extends RefEntityImpl implements RefElement, WritableRefElement {
|
||||
protected static final Logger LOG = Logger.getInstance(RefElement.class);
|
||||
protected static final Logger LOG = Logger.getInstance(RefElementImpl.class);
|
||||
|
||||
private static final int IS_DELETED_MASK = 0b10000; // 5th bit
|
||||
private static final int IS_INITIALIZED_MASK = 0b100000; // 6th bit
|
||||
@@ -73,7 +73,7 @@ public abstract class RefElementImpl extends RefEntityImpl implements RefElement
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable Icon getIcon(final boolean expanded) {
|
||||
public @Nullable Icon getIcon(boolean expanded) {
|
||||
final PsiElement element = getPsiElement();
|
||||
if (element != null && element.isValid()) {
|
||||
return element.getIcon(Iconable.ICON_FLAG_VISIBILITY | Iconable.ICON_FLAG_READ_STATUS);
|
||||
@@ -186,13 +186,9 @@ public abstract class RefElementImpl extends RefEntityImpl implements RefElement
|
||||
}
|
||||
}
|
||||
|
||||
public void setReferencesBuilt(boolean built) {
|
||||
setFlag(built, REFERENCES_BUILT_MASK);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean areReferencesBuilt() {
|
||||
return checkFlag(REFERENCES_BUILT_MASK);
|
||||
return checkAndSetFlag(REFERENCES_BUILT_MASK);
|
||||
}
|
||||
|
||||
public void setEntry(boolean entry) {
|
||||
@@ -258,7 +254,7 @@ public abstract class RefElementImpl extends RefEntityImpl implements RefElement
|
||||
return checkFlag(IS_INITIALIZED_MASK);
|
||||
}
|
||||
|
||||
public synchronized void setInitialized(final boolean initialized) {
|
||||
public synchronized void setInitialized(boolean initialized) {
|
||||
setFlag(initialized, IS_INITIALIZED_MASK);
|
||||
}
|
||||
|
||||
@@ -273,7 +269,7 @@ public abstract class RefElementImpl extends RefEntityImpl implements RefElement
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSuppression(final String text) {
|
||||
public void addSuppression(String text) {
|
||||
mySuppressions = text.split("[, ]");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user