From 57fb172991afa30c400403dfccf4aca4cc8b6054 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 18 May 2018 16:31:51 +0300 Subject: [PATCH] Cleanup (warnings; formatting) --- .../advHighlighting/QualifiedNew.java | 21 +++++++++---------- .../daemon/LightAdvHighlightingTest.java | 6 +++--- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/QualifiedNew.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/QualifiedNew.java index b832b91dd747..ffb33066fd4e 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/QualifiedNew.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/QualifiedNew.java @@ -1,16 +1,16 @@ // Qualified new of static class class A { - b b; - A() { - b.new c(); - b.new inner(); - } - class inner {} + b b; + A() { + b.new c(); + b.new inner(); + } + class inner {} - void f() { - char[] c = b.new char[0]; - } + void f() { + char[] c = b.new char[0]; + } } class b extends A { @@ -19,8 +19,7 @@ class b extends A { class WithAnonym { - interface I { - } + interface I {} class Inner{} } diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightAdvHighlightingTest.java b/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightAdvHighlightingTest.java index bccd1c0381ab..71f7641abd16 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightAdvHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/LightAdvHighlightingTest.java @@ -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();