mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
IDEA-54393 (type element tree generation reworked)
Fixes: marking of generated elements, annotated types
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Cast to 'int[]'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>int @TA [] a = (@TA int[]) o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Cast to 'int'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>int i = (@TA int) o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Cast to 'java.lang.Integer'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>Integer i = (@TA Integer) o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast to 'java.util.List<java.lang.String>'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import java.util.List;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>List<@TA String> l = (@TA List<@TA String>) o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast to 'java.util.List<? extends java.lang.String>'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import java.util.List;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>List<@TA ? extends @TA String> l = (@TA List<? extends @TA String>) o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Cast to 'int[]'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>int @TA [] a = o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Cast to 'int'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>int i = o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Cast to 'java.lang.Integer'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>Integer i = o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast to 'java.util.List<java.lang.String>'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import java.util.List;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>List<@TA String> l = o;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// "Cast to 'java.util.List<? extends java.lang.String>'" "true"
|
||||
import java.lang.annotation.*;
|
||||
import java.util.List;
|
||||
import static java.lang.annotation.ElementType.*;
|
||||
|
||||
@Target({TYPE_USE}) @interface TA { }
|
||||
|
||||
class C {
|
||||
{
|
||||
Object o = null;
|
||||
@TA <caret>List<@TA ? extends @TA String> l = o;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user