Inspectopedia 2024.3 Help

Threading issues

'notify()' or 'notifyAll()' while not synced   New in this release

Reports calls to notify() and notifyAll() not within a corresponding synchronized statement or synchronized method.

'wait()' not in loop   New in this release

Reports calls to wait() not made inside a loop.

'wait()' while not synced   New in this release

Reports calls to wait() not made inside a corresponding synchronized statement or synchronized method.

Access to static field locked on instance data   New in this release

Reports accesses to a non-constant static field which is locked on either this or an instance field of this.

Busy wait  

Reports calls to java.lang.Thread.sleep() that occur inside loops.

Call to System.runFinalizersOnExit()   New in this release

Reports calls to System.runFinalizersOnExit().

Call to Thread.stop(), Thread.suspend(), or Thread.resume()   New in this release

Reports calls to Thread.stop(),Thread.suspend(), or Thread.resume().

Double-checked locking  

Reports double-checked locking.

Empty 'synchronized' block   New in this release

Reports synchronized statements with empty bodies.

Nested 'synchronized' statement  

Reports nested synchronized statements.

Non-private field accessed in synchronized context   New in this release

Reports non-final, non-private fields which are accessed in a synchronized context.

Synchronization on 'this'  

Reports synchronization which uses this as its lock expression.

Synchronization on non-final field   New in this release

Reports synchronized statements where the lock expression is a non-final field.

Synchronization on variable initialized with literal   New in this release

Reports synchronized blocks which lock on an object which is initialized with a literal.

Synchronized method   New in this release

Reports the synchronized modifier on methods.

Unconditional 'wait' call   New in this release

Reports wait() being called unconditionally within a synchronized context.

Unsynchronized method overrides synchronized method   New in this release

Reports non-synchronized methods overriding synchronized methods.

While loop spins on field   New in this release

Reports while loops, which spin on the value of a non-volatile field, waiting for it to be changed by another thread.

Last modified: 11 September 2024