mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
reject imports from default package (IDEA-138822; IDEA-154024)
This commit is contained in:
+7
@@ -1,5 +1,8 @@
|
||||
import static <error descr="Cannot resolve symbol 'MyConstants'">MyConstants</error>.*;
|
||||
import <error descr="Cannot resolve symbol 'MyConstants'">MyConstants</error>;
|
||||
import <error descr="Cannot resolve symbol 'MyConstants'">MyConstants</error>.Inner;
|
||||
import static <error descr="Cannot resolve symbol 'MyConstants'">MyConstants</error>.Inner.*;
|
||||
import static <error descr="Cannot resolve symbol 'MyConstants'">MyConstants</error>.Inner.INNER_CONSTANT;
|
||||
|
||||
class MyClient
|
||||
{
|
||||
@@ -9,4 +12,8 @@ class MyClient
|
||||
class MyConstants
|
||||
{
|
||||
public static final int CONSTANT = 1;
|
||||
|
||||
public static class Inner {
|
||||
public static final String INNER_CONSTANT = "const";
|
||||
}
|
||||
}
|
||||
+3
-12
@@ -1,19 +1,10 @@
|
||||
import java.util.*;
|
||||
import Node.Details;
|
||||
|
||||
class Node<E> {
|
||||
public class Details {
|
||||
public E data;
|
||||
}
|
||||
public Details addNode(Node<E> child) {
|
||||
return new Details();
|
||||
}
|
||||
}
|
||||
import java.util.Map.Entry;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
Map<String, Details> m = null;
|
||||
Map<String, Node.Details> sorted1;
|
||||
Map<String, Entry> m = null;
|
||||
Map<String, Map.Entry> sorted1;
|
||||
sorted1 = m;
|
||||
}
|
||||
}
|
||||
+5
-14
@@ -1,19 +1,10 @@
|
||||
import java.util.*;
|
||||
import Node.Details;
|
||||
|
||||
class Node<E> {
|
||||
public class Details {
|
||||
public E data;
|
||||
}
|
||||
public Details addNode(Node<E> child) {
|
||||
return new Details();
|
||||
}
|
||||
}
|
||||
import java.util.Map.Entry;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
Map<String, Details> m = null;
|
||||
Map<String, Node.Details> sorted1;
|
||||
sorted1 = m;
|
||||
Map<String, Entry> m = null;
|
||||
Map<String, Map.Entry> sorted1;
|
||||
sorted1 = m;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user