mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:38:50 +07:00
forbid anonym -> lambda/meth ref if method is synchronized (IDEA-133947)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Replace with lambda" "false"
|
||||
class Test {
|
||||
interface I {
|
||||
void m();
|
||||
}
|
||||
|
||||
{
|
||||
I i = new I<caret>() {
|
||||
public synchronized void m() {
|
||||
//do smth
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user