IDEA-54393 (type element tree generation reworked)

Fixes: marking of generated elements, annotated types
This commit is contained in:
Roman Shevchenko
2013-03-14 21:03:14 +01:00
parent 238483108b
commit 75f112bc0d
18 changed files with 240 additions and 128 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}