Nested synchronized blocks InspectionGadgets issue

I do think this case should be excluded.

public void foo() {
synchronized(smth) {
// some code
SwingUtilities.invokeLater(new Runnable() {
public void run() {
synchronized(smth_else) { // Nested synchronized blocks
erroneously reported here.
//some more code
}
}
});
}
}

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"



0
Avatar
Permanently deleted user

Reasonable. It'll be in the next version.

0

请先登录再写评论。