Merge branch 'idea90' of git.labs.intellij.net:idea/community into idea90
[fedora-idea.git] / plugins / groovy / resources / inspectionDescriptions / GroovySynchronizationOnThis.html
blobdffc887ae07d3f704e3af4d2affc0481da4655b7
1 <html>
2 <body><table> <tr> <td valign="top" height="150">
3 <font face="verdana" size="-1">
4 This inspection reports any instances of synchronization in Groovy code which use <b><font color="#000080">this</font></b> as their lock
5 expression. Constructs reported include <b><font color="#000080">synchronized</font></b>
6 blocks which lock <b><font color="#000080">this</font></b>, and calls to <b><font color="#000080">wait()</font></b>
7 <b><font color="#000080">notify()</font></b> or <b><font color="#000080">notifyAll()</font></b> which target <b><font color="#000080">wait()</font></b>.
8 Such constructs, like synchronized methods, make it hard to track just who is locking on a given
9 object, and make possible "denial of service" attacks on objects. As an alternative, consider
10 locking on a private instance variable, access to which can be completely controlled.
11 </font></td> </tr> <tr> <td height="20"> <font face="verdana" size="-2">Powered by InspectorGroovy </font> </td> </tr> </table> </body>
12 </html>