5 <td valign=
"top" height=
"150">
6 <font face=
"verdana" size=
"-1">
7 This inspection reports any instances of
<b><font color=
"#000080">.wait()
</font></b>
8 being called unconditionally within a synchronized context in Groovy code.
9 Normally,
<b><font color=
"#000080">.wait()
</font></b> is
10 used to block a thread until some condition is true. If
<b><font color=
"#000080">.wait()
</font></b>
11 is called unconditionally, that often indicates that the condition was checked before a lock was
12 acquired. In that case a data race may occur, with the condition becoming true between the time
13 it was checked and the time the lock was acquired. While constructs found by this inspection
14 are not necessarily incorrect, they are certainly worth examining.
18 <td height=
"20"><font face=
"verdana" size=
"-2">Powered by InspectorGroovy
</font></td>