mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
-2
@@ -22,7 +22,6 @@ import com.intellij.codeInsight.daemon.QuickFixBundle;
|
||||
import com.intellij.codeInsight.template.Template;
|
||||
import com.intellij.codeInsight.template.TemplateBuilderImpl;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
@@ -36,7 +35,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
* @author mike
|
||||
*/
|
||||
public class CreateClassFromNewFix extends CreateFromUsageBaseFix {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.daemon.impl.quickfix.CreateClassFromNewFix");
|
||||
private final SmartPsiElementPointer myNewExpression;
|
||||
|
||||
public CreateClassFromNewFix(PsiNewExpression newExpression) {
|
||||
|
||||
+1
-3
@@ -4,8 +4,6 @@ import com.intellij.codeInspection.LocalInspectionTool;
|
||||
import com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection;
|
||||
import com.intellij.codeInspection.unusedImport.UnusedImportLocalInspection;
|
||||
import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.openapi.projectRoots.impl.JavaSdkImpl;
|
||||
import com.intellij.openapi.roots.LanguageLevelProjectExtension;
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
import com.intellij.psi.PsiClass;
|
||||
@@ -99,7 +97,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testInnerClassRef() throws Exception { doTest(false); }
|
||||
public void testPrivateInnerClassRef() throws Exception { doTest(false); }
|
||||
|
||||
public void testJavaUtilCollections() throws Exception {
|
||||
public void testJavaUtilCollections_NoVerify() throws Exception {
|
||||
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));
|
||||
|
||||
assertNotNull(collectionsClass);
|
||||
|
||||
@@ -327,9 +327,12 @@ public class HighlightInfo implements Segment {
|
||||
}
|
||||
if (text != null) s += " text='" + text + "'";
|
||||
if (description != null) s+= ", description='" + description + "'";
|
||||
//if (toolTip != null) s+= ", toolTip='" + toolTip + "'";
|
||||
s += " severity=" + severity;
|
||||
s += " group=" + group;
|
||||
|
||||
if (quickFixActionRanges != null) {
|
||||
s+= "; quickFixes: "+quickFixActionRanges;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -522,7 +525,8 @@ public class HighlightInfo implements Segment {
|
||||
|
||||
@NonNls
|
||||
public String toString() {
|
||||
return "descriptor: " + getAction().getText();
|
||||
String text = getAction().getText();
|
||||
return "descriptor: " + (text.length()==0 ? getAction().getClass() : text);
|
||||
}
|
||||
|
||||
public Icon getIcon() {
|
||||
|
||||
Reference in New Issue
Block a user