mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
18 lines
436 B
Java
18 lines
436 B
Java
// "Change 2nd parameter of method 'f' from 'Integer' to 'String'" "true-preview"
|
|
import java.lang.annotation.*;
|
|
|
|
class A {
|
|
void f(@Anno @Anno2 @Anno3 String s, String i) {}
|
|
public void foo() {
|
|
f("s", "x");
|
|
}
|
|
|
|
@Target({ElementType.PARAMETER, ElementType.TYPE_USE})
|
|
@interface Anno {}
|
|
|
|
@Target({ElementType.TYPE_USE})
|
|
@interface Anno2 {}
|
|
|
|
@Target({ElementType.PARAMETER})
|
|
@interface Anno3 {}
|
|
} |