java create class from new: don't create non-static inner if new expression can't be used afterwards (IDEA-97433)

GitOrigin-RevId: 89616c077ca5141db53b624ae08bc54b04d53cae
This commit is contained in:
Anna Kozlova authored and intellij-monorepo-bot committed 2020-12-18 19:01:32 +00:00
1 parent f535bd830e
commit 1c6857ec2d
7 files changed
+54 -6

No files matched your search

@@ -2,7 +2,7 @@
import java.util.*;
public class Test {
public static void main() {
public void main() {
Collection c = new Test.My<caret>Collection(1);
}
}