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!"



1 comment

Reasonable. It'll be in the next version.

0

Please sign in to leave a comment.