mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 14:50:53 +07:00
1. Adapt messages to speak about local class when applicable 2. Fix when name is not changed, but we have type parameters GitOrigin-RevId: bd3dbda21922473c9c4e52bccf840a35c55c9d59
35 lines
810 B
Java
35 lines
810 B
Java
import java.util.function.IntFunction;
|
|
|
|
public class LocalClass {
|
|
<T> void test(int x, T t) {
|
|
class Hell<caret>o {
|
|
Hello(int a) {}
|
|
Hello(String a) {}
|
|
|
|
static {
|
|
System.out.println("hello");
|
|
}
|
|
|
|
{
|
|
System.out.println("hi"+x);
|
|
}
|
|
|
|
void run(T t) {
|
|
System.out.println(x);
|
|
System.out.println(Hello.class);
|
|
var xHello = new Hello(3);
|
|
System.out.println(xHello);
|
|
xHello.run(t);
|
|
}
|
|
}
|
|
|
|
Hello h = new Hello(1);
|
|
IntFunction<Hello> ic = Hello::new;
|
|
System.out.println(new Hello(1) {
|
|
void test() {}
|
|
});
|
|
|
|
h.run(t);
|
|
}
|
|
}
|