mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
update tests and testdata to reflect newer mock jdk 1.7
This commit is contained in:
+11
-3
@@ -1,8 +1,16 @@
|
||||
import java.util.Calendar;
|
||||
|
||||
class Util {
|
||||
void foo() {
|
||||
Calendar.getInstance().get(Cale<caret>x)
|
||||
MyCalendar.getInstance().get(MyCale<caret>x)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MyCalendar {
|
||||
static MyCalendar getInstance() {}
|
||||
|
||||
int get(int field) {}
|
||||
|
||||
public static final int FIELD_COUNT;
|
||||
public static final int AM;
|
||||
public static final int PM;
|
||||
}
|
||||
+3
-3
@@ -42,9 +42,9 @@ class C {
|
||||
mt = MethodType.methodType(java.util.List.class, Object[].class);
|
||||
mh = lookup.findStatic(java.util.Arrays.class, "asList", mt);
|
||||
assert(mh.isVarargsCollector());
|
||||
x = mh.invokeGeneric("one", "two");
|
||||
x = mh.invoke("one", "two");
|
||||
|
||||
// invokeGeneric(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
|
||||
// invoke(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
|
||||
assert(x.equals(java.util.Arrays.asList("one","two")));
|
||||
|
||||
// mt is (Object,Object,Object)Object
|
||||
@@ -68,7 +68,7 @@ class C {
|
||||
// invokeExact(Ljava/io/PrintStream;Ljava/lang/String;)V
|
||||
|
||||
MethodHandle mh0 = lookup.findVirtual(String.class, "length", MethodType.methodType(int.class));
|
||||
MethodHandle mh1 = MethodHandles.convertArguments(mh0, MethodType.methodType(Integer.class, String.class));
|
||||
MethodHandle mh1 = mh0.asType(MethodType.methodType(Integer.class, String.class));
|
||||
System.out.println((Integer) mh1.invokeExact("daddy"));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ implements <a href="psi_element://java.io.Serializable"><code>java.io.Serializab
|
||||
individual characters of the sequence, for comparing strings, for
|
||||
searching strings, for extracting substrings, and for creating a
|
||||
copy of a string with all characters translated to uppercase or to
|
||||
lowercase. Case mapping is based on the Unicode Standard version
|
||||
lowercase. Case mapping is based on the Unicode Standard version
|
||||
specified by the <a href="psi_element://java.lang.Character"><code>Character</code></a> class.
|
||||
<p>
|
||||
The Java language provides special support for the string
|
||||
|
||||
+1
-2
@@ -5,10 +5,9 @@ public abstract boolean <b>contains</b>(<a href="psi_element://java.la
|
||||
<li><i>@<a href="psi_element://org.jetbrains.annotations.Contract"><code>org.jetbrains.annotations.Contract</code></a>(pure = true)</i></li>
|
||||
</ul>
|
||||
|
||||
|
||||
Returns <tt>true</tt> if this list contains the specified element.
|
||||
More formally, returns <tt>true</tt> if and only if this list contains
|
||||
at least one element <tt>e</tt> such that
|
||||
<tt>(o==null ? e==null : o.equals(e))</tt>.
|
||||
|
||||
<DD><DL><DT><b>Overrides:</b><DD><a href="psi_element://java.util.Collection#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://java.util.Collection"><code>Collection</code></a></DD></DL></DD><DD><DL><DT><b>Parameters:</b><DD><code>o</code> - element whose presence in this list is to be tested. </DD></DL></DD><DD><DL><DT><b>Returns:</b><DD><tt>true</tt> if this list contains the specified element. </DD></DL></DD><DD><DL><DT><b>Throws:</b><DD><a href="psi_element://java.lang.ClassCastException"><code>ClassCastException</code></a> - if the type of the specified element is incompatible with this list (optional). <DD><a href="psi_element://java.lang.NullPointerException"><code>NullPointerException</code></a> - if the specified element is null and this list does not support null elements (optional).</DD></DL></DD></body></html>
|
||||
<DD><DL><DT><b>Overrides:</b><DD><a href="psi_element://java.util.Collection#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://java.util.Collection"><code>Collection</code></a></DD></DL></DD><DD><DL><DT><b>Parameters:</b><DD><code>o</code> - element whose presence in this list is to be tested </DD></DL></DD><DD><DL><DT><b>Returns:</b><DD><tt>true</tt> if this list contains the specified element </DD></DL></DD><DD><DL><DT><b>Throws:</b><DD><a href="psi_element://java.lang.ClassCastException"><code>ClassCastException</code></a> - if the type of the specified element is incompatible with this list (<a href="psi_element://java.util.Collection###optional-restrictions">optional</a>) <DD><a href="psi_element://java.lang.NullPointerException"><code>NullPointerException</code></a> - if the specified element is null and this list does not permit null elements (<a href="psi_element://java.util.Collection###optional-restrictions">optional</a>)</DD></DL></DD></body></html>
|
||||
+5
-5
@@ -5,9 +5,9 @@ boolean <b>contains</b>(<a href="psi_element://java.lang.Object"><code>Obje
|
||||
<li><i>@<a href="psi_element://org.jetbrains.annotations.Contract"><code>org.jetbrains.annotations.Contract</code></a>(pure = true)</i></li>
|
||||
</ul>
|
||||
<DD><DL><DT><b>Description copied from interface:</b> <a href="psi_element://java.util.Collection"><code>java.util.Collection</code></a><br>
|
||||
Returns <tt>true</tt> if this collection contains the specified
|
||||
element. More formally, returns <tt>true</tt> if and only if this
|
||||
collection contains at least one element <tt>e</tt> such that
|
||||
<tt>(o==null ? e==null : o.equals(e))</tt>.
|
||||
Returns <tt>true</tt> if this collection contains the specified element.
|
||||
More formally, returns <tt>true</tt> if and only if this collection
|
||||
contains at least one element <tt>e</tt> such that
|
||||
<tt>(o==null ? e==null : o.equals(e))</tt>.
|
||||
|
||||
</DD></DL></DD><DD><DL><DT><b>Overrides:</b><DD><a href="psi_element://java.util.Collection#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://java.util.Collection"><code>Collection</code></a><DD><a href="psi_element://I#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://I"><code>I</code></a></DD></DL></DD><DD><DL><DT><b>Parameters:</b><DD><code>o</code> - element whose presence in this collection is to be tested. </DD></DL></DD><DD><DL><DT><b>Returns:</b><DD><tt>true</tt> if this collection contains the specified element </DD></DL></DD><DD><DL><DT><b>Throws:</b><DD><a href="psi_element://java.lang.ClassCastException"><code>ClassCastException</code></a> - if the type of the specified element is incompatible with this collection (optional). <DD><a href="psi_element://java.lang.NullPointerException"><code>NullPointerException</code></a> - if the specified element is null and this collection does not support null elements (optional).</DD></DL></DD></body></html>
|
||||
</DD></DL></DD><DD><DL><DT><b>Overrides:</b><DD><a href="psi_element://java.util.Collection#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://java.util.Collection"><code>Collection</code></a><DD><a href="psi_element://I#contains(java.lang.Object)"><code>contains</code></a> in interface <a href="psi_element://I"><code>I</code></a></DD></DL></DD><DD><DL><DT><b>Parameters:</b><DD><code>o</code> - element whose presence in this collection is to be tested </DD></DL></DD><DD><DL><DT><b>Returns:</b><DD><tt>true</tt> if this collection contains the specified element </DD></DL></DD><DD><DL><DT><b>Throws:</b><DD><a href="psi_element://java.lang.ClassCastException"><code>ClassCastException</code></a> - if the type of the specified element is incompatible with this collection (<a href="psi_element://My###optional-restrictions">optional</a>) <DD><a href="psi_element://java.lang.NullPointerException"><code>NullPointerException</code></a> - if the specified element is null and this collection does not permit null elements (<a href="psi_element://My###optional-restrictions">optional</a>)</DD></DL></DD></body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
PsiJavaFileStub [java.util.concurrent]
|
||||
PsiClassStub[enum name=TimeUnit fqn=java.util.concurrent.TimeUnit]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiModifierListStub[mask=1025]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
@@ -12,27 +12,43 @@ PsiJavaFileStub [java.util.concurrent]
|
||||
PsiModifierListStub[mask=25]
|
||||
PsiFieldStub[enumconst SECONDS:java.util.concurrent.TimeUnit]
|
||||
PsiModifierListStub[mask=25]
|
||||
PsiFieldStub[index:int]
|
||||
PsiModifierListStub[mask=18]
|
||||
PsiFieldStub[multipliers:int[]]
|
||||
PsiModifierListStub[mask=26]
|
||||
PsiFieldStub[overflows:long[]]
|
||||
PsiModifierListStub[mask=26]
|
||||
PsiFieldStub[enumconst MINUTES:java.util.concurrent.TimeUnit]
|
||||
PsiModifierListStub[mask=25]
|
||||
PsiFieldStub[enumconst HOURS:java.util.concurrent.TimeUnit]
|
||||
PsiModifierListStub[mask=25]
|
||||
PsiFieldStub[enumconst DAYS:java.util.concurrent.TimeUnit]
|
||||
PsiModifierListStub[mask=25]
|
||||
PsiFieldStub[C0:long=1L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[C1:long=1000L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[C2:long=1000000L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[C3:long=1000000000L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[C4:long=60000000000L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[C5:long=3600000000000L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[C6:long=86400000000000L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[MAX:long=9223372036854775807L]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiMethodStub[cons TimeUnit:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:int]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[doConvert:long]
|
||||
PsiModifierListStub[mask=10]
|
||||
PsiMethodStub[x:long]
|
||||
PsiModifierListStub[mask=4104]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:int]
|
||||
PsiParameterStub[p1:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiParameterStub[p2:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiParameterStub[p3:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[convert:long]
|
||||
PsiModifierListStub[mask=1]
|
||||
@@ -71,8 +87,29 @@ PsiJavaFileStub [java.util.concurrent]
|
||||
PsiParameterStub[p1:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[toMinutes:long]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[toHours:long]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[toDays:long]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[excessNanos:int]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiModifierListStub[mask=5120]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:long]
|
||||
@@ -104,4 +141,4 @@ PsiJavaFileStub [java.util.concurrent]
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:long]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:java.lang.InterruptedException]
|
||||
PsiRefListStub[THROWS_LIST:java.lang.InterruptedException]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,13 +8,295 @@ PsiJavaFileStub [java.util]
|
||||
PsiRefListStub[EXTENDS_BOUNDS_LIST:]
|
||||
PsiRefListStub[EXTENDS_LIST:java.util.AbstractMap<K,V>]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:java.util.Map<K,V>, java.lang.Cloneable, java.io.Serializable]
|
||||
PsiClassStub[name=EntrySet fqn=java.util.HashMap.EntrySet]
|
||||
PsiModifierListStub[mask=18]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:java.util.AbstractSet<java.util.Map.Entry<K,V>>]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
PsiMethodStub[cons EntrySet:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[iterator:java.util.Iterator<java.util.Map.Entry<K,V>>]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[contains:boolean]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[remove:boolean]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[size:int]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[clear:void]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=Values fqn=java.util.HashMap.Values]
|
||||
PsiModifierListStub[mask=18]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:java.util.AbstractCollection<V>]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
PsiMethodStub[cons Values:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[iterator:java.util.Iterator<V>]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[size:int]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[contains:boolean]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[clear:void]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=KeySet fqn=java.util.HashMap.KeySet]
|
||||
PsiModifierListStub[mask=18]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:java.util.AbstractSet<K>]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
PsiMethodStub[cons KeySet:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[iterator:java.util.Iterator<K>]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[size:int]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[contains:boolean]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[remove:boolean]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[clear:void]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=EntryIterator fqn=java.util.HashMap.EntryIterator]
|
||||
PsiModifierListStub[mask=18]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:java.util.HashMap<K,V>.HashIterator<java.util.Map.Entry<K,V>>]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
PsiMethodStub[cons EntryIterator:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[next:java.util.Map.Entry<K,V>]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=KeyIterator fqn=java.util.HashMap.KeyIterator]
|
||||
PsiModifierListStub[mask=18]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:java.util.HashMap<K,V>.HashIterator<K>]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
PsiMethodStub[cons KeyIterator:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[next:K]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=ValueIterator fqn=java.util.HashMap.ValueIterator]
|
||||
PsiModifierListStub[mask=18]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:java.util.HashMap<K,V>.HashIterator<V>]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
PsiMethodStub[cons ValueIterator:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[next:V]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=HashIterator fqn=java.util.HashMap.HashIterator]
|
||||
PsiModifierListStub[mask=1026]
|
||||
PsiTypeParameterListStub
|
||||
PsiTypeParameter[E]
|
||||
PsiRefListStub[EXTENDS_BOUNDS_LIST:]
|
||||
PsiRefListStub[EXTENDS_LIST:]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:java.util.Iterator<E>]
|
||||
PsiFieldStub[next:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiFieldStub[expectedModCount:int]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiFieldStub[index:int]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiFieldStub[current:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiMethodStub[cons HashIterator:void]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[hasNext:boolean]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[nextEntry:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[remove:void]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=Entry fqn=java.util.HashMap.Entry]
|
||||
PsiModifierListStub[mask=4104]
|
||||
PsiTypeParameterListStub
|
||||
PsiTypeParameter[K]
|
||||
PsiRefListStub[EXTENDS_BOUNDS_LIST:]
|
||||
PsiTypeParameter[V]
|
||||
PsiRefListStub[EXTENDS_BOUNDS_LIST:]
|
||||
PsiRefListStub[EXTENDS_LIST:]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:java.util.Map.Entry<K,V>]
|
||||
PsiFieldStub[key:K]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiFieldStub[value:V]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiFieldStub[next:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiFieldStub[hash:int]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiMethodStub[cons Entry:void]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:int]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiParameterStub[p2:K]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiParameterStub[p3:V]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiParameterStub[p4:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[getKey:K]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[getValue:V]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[setValue:V]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:V]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[equals:boolean]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[hashCode:int]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[toString:java.lang.String]
|
||||
PsiModifierListStub[mask=17]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[recordAccess:void]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.util.HashMap<K,V>]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[recordRemoval:void]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.util.HashMap<K,V>]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiClassStub[name=Holder fqn=java.util.HashMap.Holder]
|
||||
PsiModifierListStub[mask=10]
|
||||
PsiTypeParameterListStub
|
||||
PsiRefListStub[EXTENDS_LIST:]
|
||||
PsiRefListStub[IMPLEMENTS_LIST:]
|
||||
PsiFieldStub[ALTERNATIVE_HASHING_THRESHOLD:int]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiMethodStub[cons Holder:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiFieldStub[DEFAULT_INITIAL_CAPACITY:int=16]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[MAXIMUM_CAPACITY:int=1073741824]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[DEFAULT_LOAD_FACTOR:float=0.75f]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[table:java.util.HashMap.Entry[]]
|
||||
PsiFieldStub[EMPTY_TABLE:java.util.HashMap.Entry<?,?>[]]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[table:java.util.HashMap.Entry<K,V>[]]
|
||||
PsiModifierListStub[mask=4224]
|
||||
PsiFieldStub[size:int]
|
||||
PsiModifierListStub[mask=4224]
|
||||
@@ -23,9 +305,11 @@ PsiJavaFileStub [java.util]
|
||||
PsiFieldStub[loadFactor:float]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiFieldStub[modCount:int]
|
||||
PsiModifierListStub[mask=4288]
|
||||
PsiFieldStub[NULL_KEY:java.lang.Object]
|
||||
PsiModifierListStub[mask=4224]
|
||||
PsiFieldStub[ALTERNATIVE_HASHING_THRESHOLD_DEFAULT:int=2147483647]
|
||||
PsiModifierListStub[mask=4120]
|
||||
PsiFieldStub[hashSeed:int]
|
||||
PsiModifierListStub[mask=4224]
|
||||
PsiFieldStub[entrySet:java.util.Set<java.util.Map.Entry<K,V>>]
|
||||
PsiModifierListStub[mask=130]
|
||||
PsiFieldStub[serialVersionUID:long=362498820763181265L]
|
||||
@@ -58,45 +342,39 @@ PsiJavaFileStub [java.util]
|
||||
PsiParameterStub[p1:java.util.Map<? extends K,? extends V>]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[roundUpToPowerOf2:int]
|
||||
PsiModifierListStub[mask=10]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:int]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[inflateTable:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:int]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[init:void]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[maskNull:T]
|
||||
PsiModifierListStub[mask=4104]
|
||||
PsiMethodStub[initHashSeedAsNeeded:boolean]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiTypeParameterListStub
|
||||
PsiTypeParameter[T]
|
||||
PsiRefListStub[EXTENDS_BOUNDS_LIST:]
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:T]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[unmaskNull:T]
|
||||
PsiModifierListStub[mask=4104]
|
||||
PsiTypeParameterListStub
|
||||
PsiTypeParameter[T]
|
||||
PsiRefListStub[EXTENDS_BOUNDS_LIST:]
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:T]
|
||||
PsiParameterStub[p1:int]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[hash:int]
|
||||
PsiModifierListStub[mask=4104]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[eq:boolean]
|
||||
PsiModifierListStub[mask=4104]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiParameterStub[p2:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[indexFor:int]
|
||||
PsiModifierListStub[mask=4104]
|
||||
PsiTypeParameterListStub
|
||||
@@ -123,6 +401,11 @@ PsiJavaFileStub [java.util]
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[getForNullKey:V]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[containsKey:boolean]
|
||||
PsiModifierListStub[mask=1]
|
||||
PsiTypeParameterListStub
|
||||
@@ -131,7 +414,7 @@ PsiJavaFileStub [java.util]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[getEntry:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
@@ -146,6 +429,13 @@ PsiJavaFileStub [java.util]
|
||||
PsiParameterStub[p2:V]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[putForNullKey:V]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:V]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[putForCreate:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
@@ -156,7 +446,7 @@ PsiJavaFileStub [java.util]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[putAllForCreate:void]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.util.Map<? extends K,? extends V>]
|
||||
@@ -175,6 +465,8 @@ PsiJavaFileStub [java.util]
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.util.HashMap.Entry[]]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiParameterStub[p2:boolean]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[putAll:void]
|
||||
PsiModifierListStub[mask=1]
|
||||
@@ -191,14 +483,14 @@ PsiJavaFileStub [java.util]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[removeEntryForKey:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
PsiModifierListStub[mask=0]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[removeMapping:java.util.HashMap.Entry<K,V>]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiModifierListStub[mask=4112]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiParameterStub[p1:java.lang.Object]
|
||||
@@ -282,6 +574,11 @@ PsiJavaFileStub [java.util]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[entrySet0:java.util.Set<java.util.Map.Entry<K,V>>]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiMethodStub[writeObject:void]
|
||||
PsiModifierListStub[mask=2]
|
||||
PsiTypeParameterListStub
|
||||
@@ -305,4 +602,4 @@ PsiJavaFileStub [java.util]
|
||||
PsiModifierListStub[mask=4096]
|
||||
PsiTypeParameterListStub
|
||||
PsiParameterListStub
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
PsiRefListStub[THROWS_LIST:]
|
||||
File diff suppressed because it is too large
Load Diff
+4
-16
@@ -1,18 +1,6 @@
|
||||
/*
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// 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.
|
||||
|
||||
package com.intellij.java.codeInsight.completion
|
||||
|
||||
@@ -431,7 +419,7 @@ interface TxANotAnno {}
|
||||
}
|
||||
|
||||
void testPreferClassToItsConstants() {
|
||||
checkPreferredItems 0, 'Calendar.FIELD_COUNT', 'Calendar', 'Calendar.AM'
|
||||
checkPreferredItems 0, 'MyCalendar.FIELD_COUNT', 'MyCalendar', 'MyCalendar.AM'
|
||||
}
|
||||
|
||||
void testPreferLocalsToStaticsInSecondCompletion() {
|
||||
|
||||
+5
-17
@@ -1,18 +1,6 @@
|
||||
/*
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// 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.
|
||||
package com.intellij.java.codeInsight.completion;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
@@ -869,7 +857,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
assertStringItems("ElementType.ANNOTATION_TYPE", "ElementType.CONSTRUCTOR",
|
||||
"ElementType.FIELD", "ElementType.LOCAL_VARIABLE",
|
||||
"ElementType.METHOD", "ElementType.PACKAGE", "ElementType.PARAMETER",
|
||||
"ElementType.TYPE", "ElementType.TYPE_PARAMETER", "ElementType.TYPE_USE");
|
||||
"ElementType.TYPE" /*, "ElementType.TYPE_PARAMETER", "ElementType.TYPE_USE"*/);
|
||||
}
|
||||
|
||||
public void testAnnotation2() throws Exception {
|
||||
@@ -909,7 +897,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
assertStringItems("ElementType.ANNOTATION_TYPE", "ElementType.CONSTRUCTOR",
|
||||
"ElementType.FIELD", "ElementType.LOCAL_VARIABLE",
|
||||
"ElementType.METHOD", "ElementType.PACKAGE", "ElementType.PARAMETER",
|
||||
"ElementType.TYPE", "ElementType.TYPE_PARAMETER", "ElementType.TYPE_USE");
|
||||
"ElementType.TYPE"/*, "ElementType.TYPE_PARAMETER", "ElementType.TYPE_USE"*/);
|
||||
}
|
||||
|
||||
public void testArrayClone() throws Exception {
|
||||
|
||||
+8
-20
@@ -1,18 +1,6 @@
|
||||
/*
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// 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.
|
||||
package com.intellij.java.codeInspection.bytecodeAnalysis;
|
||||
|
||||
import com.intellij.codeInsight.AnnotationUtil;
|
||||
@@ -227,7 +215,7 @@ public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestC
|
||||
String inferredNotNullMethodAnnotation = findInferredAnnotation(method, AnnotationUtil.NOT_NULL) == null ? "null" : "@NotNull";
|
||||
|
||||
if (!externalNotNullMethodAnnotation.equals(inferredNotNullMethodAnnotation)) {
|
||||
myDiffs.add(methodKey + ": " + externalNotNullMethodAnnotation + " != " + inferredNotNullMethodAnnotation);
|
||||
myDiffs.add(methodKey + ": " + externalNotNullMethodAnnotation + " != " + inferredNotNullMethodAnnotation + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,7 +225,7 @@ public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestC
|
||||
String inferredNullableMethodAnnotation = findInferredAnnotation(method, AnnotationUtil.NULLABLE) == null ? "null" : "@Nullable";
|
||||
|
||||
if (!externalNullableMethodAnnotation.equals(inferredNullableMethodAnnotation)) {
|
||||
myDiffs.add(methodKey + ": " + externalNullableMethodAnnotation + " != " + inferredNullableMethodAnnotation);
|
||||
myDiffs.add(methodKey + ": " + externalNullableMethodAnnotation + " != " + inferredNullableMethodAnnotation + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,7 +237,7 @@ public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestC
|
||||
String externalNotNull = findExternalAnnotation(parameter, AnnotationUtil.NOT_NULL) == null ? "null" : "@NotNull";
|
||||
String inferredNotNull = findInferredAnnotation(parameter, AnnotationUtil.NOT_NULL) == null ? "null" : "@NotNull";
|
||||
if (!externalNotNull.equals(inferredNotNull)) {
|
||||
myDiffs.add(parameterKey + ": " + externalNotNull + " != " + inferredNotNull);
|
||||
myDiffs.add(parameterKey + ": " + externalNotNull + " != " + inferredNotNull + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,7 +246,7 @@ public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestC
|
||||
String externalNullable = findExternalAnnotation(parameter, AnnotationUtil.NULLABLE) == null ? "null" : "@Nullable";
|
||||
String inferredNullable = findInferredAnnotation(parameter, AnnotationUtil.NULLABLE) == null ? "null" : "@Nullable";
|
||||
if (!externalNullable.equals(inferredNullable)) {
|
||||
myDiffs.add(parameterKey + ": " + externalNullable + " != " + inferredNullable);
|
||||
myDiffs.add(parameterKey + ": " + externalNullable + " != " + inferredNullable + "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -273,7 +261,7 @@ public class BytecodeAnalysisIntegrationTest extends JavaCodeInsightFixtureTestC
|
||||
inferredContractAnnotation == null ? "null" : inferredContractAnnotation.getText();
|
||||
|
||||
if (!externalContractAnnotationText.equals(inferredContractAnnotationText)) {
|
||||
myDiffs.add(methodKey + ": " + externalContractAnnotationText + " != " + inferredContractAnnotationText);
|
||||
myDiffs.add(methodKey + ": " + externalContractAnnotationText + " != " + inferredContractAnnotationText + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,34 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2004 JetBrains s.r.o. All Rights Reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* -Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
*
|
||||
* -Redistribution in binary form must reproduct the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in
|
||||
* the documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* Neither the name of JetBrains or IntelliJ IDEA
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* This software is provided "AS IS," without a warranty of any kind. ALL
|
||||
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
|
||||
* ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
||||
* OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. JETBRAINS AND ITS LICENSORS SHALL NOT
|
||||
* BE LIABLE FOR ANY DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT
|
||||
* OF OR RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR ITS
|
||||
* DERIVATIVES. IN NO EVENT WILL JETBRAINS OR ITS LICENSORS BE LIABLE FOR ANY LOST
|
||||
* REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
|
||||
* INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
|
||||
* OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE, EVEN
|
||||
* IF JETBRAINS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
*/
|
||||
// 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.
|
||||
package com.intellij.projectView;
|
||||
|
||||
import com.intellij.JavaTestUtil;
|
||||
@@ -62,7 +34,7 @@ public class JavaTreeStructureTest extends TestSourceBasedTestCase {
|
||||
"-Class1.java\n" +
|
||||
" -Class1\n" +
|
||||
" getValue(): int\n" +
|
||||
" getClass(): Class<? extends Object>\n" +
|
||||
" getClass(): Class<?>\n" +
|
||||
" hashCode(): int\n" +
|
||||
" equals(Object): boolean\n" +
|
||||
" clone(): Object\n" +
|
||||
@@ -117,7 +89,7 @@ public class JavaTreeStructureTest extends TestSourceBasedTestCase {
|
||||
" +InnerClass1\n" +
|
||||
" +InnerClass2\n" +
|
||||
" getValue(): int\n" +
|
||||
" getClass(): Class<? extends Object>\n" +
|
||||
" getClass(): Class<?>\n" +
|
||||
" hashCode(): int\n" +
|
||||
" equals(Object): boolean\n" +
|
||||
" clone(): Object\n" +
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ Conversions:
|
||||
|
||||
New expression type changes:
|
||||
Fails:
|
||||
"" + String.valueOf(999)->void
|
||||
"" + Integer.toString(999, 10)->void
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class Test {
|
||||
|
||||
public void toVoidMethod() {
|
||||
int j = 0;
|
||||
return "" + String.valueOf(999);
|
||||
return "" + Integer.toString(999, 10);
|
||||
}
|
||||
|
||||
public void main(String[] args) {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class Test {
|
||||
|
||||
public String toVoidMethod() {
|
||||
int j = 0;
|
||||
return "" + String.valueOf(999);
|
||||
return "" + Integer.toString(999, 10);
|
||||
}
|
||||
|
||||
public void main(String[] args) {
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ public class UnnecessarySuperfluousBoxing {
|
||||
}
|
||||
|
||||
Integer foo2(String foo, int bar) {
|
||||
return foo == null ? Integer.valueOf(0) : bar;
|
||||
return foo == null ? <warning descr="Unnecessary boxing 'Integer.valueOf(0)'">Integer.valueOf(0)</warning> : bar;
|
||||
}
|
||||
|
||||
void noUnboxing(Object val) {
|
||||
|
||||
+11
-15
@@ -1,22 +1,12 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// 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.
|
||||
package com.siyeh.ig.classlayout;
|
||||
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import com.siyeh.ig.LightInspectionTestCase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author Bas Leijdekkers
|
||||
@@ -50,6 +40,12 @@ public class InterfaceMayBeAnnotatedFunctionalInspectionTest extends LightInspec
|
||||
"}");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_8;
|
||||
}
|
||||
|
||||
public void testAnnotationType() {
|
||||
doTest("@interface A {}");
|
||||
}
|
||||
|
||||
+7
@@ -1,3 +1,6 @@
|
||||
// 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.
|
||||
package com.siyeh.ig.migration;
|
||||
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
@@ -17,6 +20,10 @@ public class UnnecessaryBoxingInspectionTest extends LightInspectionTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
Integer foo2(String foo, int bar) {
|
||||
return foo == null ? 0 : bar;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected InspectionProfileEntry getInspection() {
|
||||
|
||||
+10
-15
@@ -1,28 +1,23 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// 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.
|
||||
package com.siyeh.ig.style;
|
||||
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import com.siyeh.ig.LightInspectionTestCase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* @author Bas Leijdekkers
|
||||
*/
|
||||
public class MissortedModifiersInspectionTest extends LightInspectionTestCase {
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_8;
|
||||
}
|
||||
|
||||
public void testMissortedModifiers() {
|
||||
doTest();
|
||||
|
||||
+11
-16
@@ -1,23 +1,12 @@
|
||||
/*
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// 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.
|
||||
package com.siyeh.ig.style;
|
||||
|
||||
import com.intellij.codeInspection.InspectionProfileEntry;
|
||||
import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import com.siyeh.ig.LightInspectionTestCase;
|
||||
import junit.framework.TestCase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
@@ -25,6 +14,12 @@ import org.jetbrains.annotations.Nullable;
|
||||
*/
|
||||
public class TypeParameterExtendsObjectInspectionTest extends LightInspectionTestCase {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_8;
|
||||
}
|
||||
|
||||
public void testTypeParameterExtendsObject() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
+11
-15
@@ -1,23 +1,13 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// 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.
|
||||
package com.siyeh.ipp.interfacetoclass;
|
||||
|
||||
import com.intellij.refactoring.BaseRefactoringProcessor;
|
||||
import com.intellij.testFramework.LightProjectDescriptor;
|
||||
import com.siyeh.IntentionPowerPackBundle;
|
||||
import com.siyeh.ipp.IPPTestCase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class ConvertInterfaceToClassTest extends IPPTestCase {
|
||||
public void testBasic() { doTest(); }
|
||||
@@ -48,4 +38,10 @@ public class ConvertInterfaceToClassTest extends IPPTestCase {
|
||||
protected String getIntentionName() {
|
||||
return IntentionPowerPackBundle.message("convert.interface.to.class.intention.name");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected LightProjectDescriptor getProjectDescriptor() {
|
||||
return JAVA_8;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<<error descr="'implementation' attribute should be defined">myPlugin.ext</error>/>
|
||||
<myPlugin.ext implementation="<error descr="Interface is not allowed">java.lang.Runnable</error>"/>
|
||||
<myPlugin.ext implementation="<error descr="'java.util.concurrent.TimeUnit' is not assignable to 'java.lang.Runnable'"><error descr="Enum is not allowed">java.util.concurrent.TimeUnit</error></error>"/>
|
||||
<myPlugin.ext implementation="<error descr="'java.util.concurrent.TimeUnit' is not assignable to 'java.lang.Runnable'"><error descr="Enum is not allowed"><error descr="Abstract class is not allowed">java.util.concurrent.TimeUnit</error></error></error>"/>
|
||||
<myPlugin.ext implementation="<error descr="'java.lang.String' is not assignable to 'java.lang.Runnable'">java.lang.String</error>"/>
|
||||
|
||||
<<error descr="Deprecated EP 'com.intellij.myPlugin.deprecatedEP'">myPlugin.deprecatedEP</error> implementation="foo.MyDeprecatedEPImpl"/>
|
||||
|
||||
Reference in New Issue
Block a user