Cleanup (warnings; formatting)

This commit is contained in:
Roman Shevchenko
2018-05-18 16:36:00 +03:00
parent 4a1f82f282
commit 57fb172991
2 changed files with 13 additions and 14 deletions
@@ -1,16 +1,16 @@
// Qualified new of static class
class A {
b b;
A() {
<error descr="Qualified new of static class">b.new c()</error>;
b.new inner();
}
class inner {}
b b;
A() {
<error descr="Qualified new of static class">b.new c()</error>;
b.new inner();
}
class inner {}
void f() {
char[] c = <error descr="Invalid qualified new">b.new char[0]</error>;
}
void f() {
char[] c = <error descr="Invalid qualified new">b.new char[0]</error>;
}
}
class b extends A {
@@ -19,8 +19,7 @@ class b extends A {
class WithAnonym {
interface I {
}
interface I {}
class Inner{}
}
@@ -1,4 +1,4 @@
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.java.codeInsight.daemon;
import com.intellij.ToolExtensionPoints;
@@ -156,7 +156,7 @@ public class LightAdvHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testDeprecated() { doTest(true); }
public void testJavadoc() { enableInspectionTool(new JavaDocLocalInspection()); doTest(true); }
public void testExpressionsInSwitch () { doTest(false); }
public void testAccessInner() throws IOException {
public void testAccessInner() {
Editor e = createSaveAndOpenFile("x/BeanContextServicesSupport.java",
"" +
"package x;\n" +
@@ -203,7 +203,7 @@ public class LightAdvHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testExtendMultipleClasses() { doTest(false); }
public void testRecursiveConstructorInvocation() { doTest(false); }
public void testMethodCalls() { doTest(false); }
public void testSingleTypeImportConflicts() throws IOException {
public void testSingleTypeImportConflicts() {
createSaveAndOpenFile("sql/Date.java", "package sql; public class Date{}");
UIUtil.dispatchAllInvocationEvents();
PsiDocumentManager.getInstance(getProject()).commitAllDocuments();