mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
Fix "ignored result of call" and other warnings
GitOrigin-RevId: 13ffae0c5ef1ea27b7306f4b0cc5386369717734
This commit is contained in:
committed by
intellij-monorepo-bot
parent
edec77df83
commit
2854780d0a
@@ -205,7 +205,7 @@ public class MiscPsiTest extends LightJavaCodeInsightFixtureTestCase {
|
||||
final PsiJavaFile file = (PsiJavaFile)PsiFileFactory.getInstance(getProject()).createFileFromText("D.java",
|
||||
"import java.util.Map.Entry");
|
||||
PsiImportStatement importStatement = file.getImportList().getImportStatements()[0];
|
||||
assertTrue(!importStatement.isOnDemand());
|
||||
assertFalse(importStatement.isOnDemand());
|
||||
}
|
||||
|
||||
public void testDocCommentPrecededByLineComment() {
|
||||
@@ -236,7 +236,8 @@ public class MiscPsiTest extends LightJavaCodeInsightFixtureTestCase {
|
||||
|
||||
public void testDoNotExpandNestedChameleons() {
|
||||
PsiJavaFile file = (PsiJavaFile)myFixture.addFileToProject("a.java", "class A {{{}}}");
|
||||
file.getNode();
|
||||
//noinspection ResultOfMethodCallIgnored
|
||||
file.getNode(); // load tree
|
||||
|
||||
PsiCodeBlock initializer = file.getClasses()[0].getInitializers()[0].getBody();
|
||||
assertFalse(assertInstanceOf(initializer.getNode(), LazyParseableElement.class).isParsed());
|
||||
|
||||
@@ -140,6 +140,7 @@ public class PsiConcurrencyStressTest extends DaemonAnalyzerTestCase {
|
||||
case 1 -> {
|
||||
mark("m");
|
||||
for (int offset = 0; offset < myFile.getTextLength(); offset++) {
|
||||
//noinspection ResultOfMethodCallIgnored -- performance testing
|
||||
myFile.findElementAt(offset);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user