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>