mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
disable anonymous -> lambda replacement when 'runtime annotated' (IDEA-131206)
(cherry picked from commit 07b10689487a95a5d2de78c25d1a7f0c44b6607d)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// "Replace with lambda" "false"
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
class Test {
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface A {}
|
||||
|
||||
{
|
||||
Runnable r = new Ru<caret>nnable() {
|
||||
@A
|
||||
public void run() {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user