Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed FindBugs table

...

The following table summarizes the examples flagged as violations by FindbugsFindBugs:

Noncompliant Code Example

Flagged

Checker

Message

Boolean lock object

Yes

DL_SYNCHRONIZATION_ON_BOOLEAN

Synchronization on Boolean could deadlock

Boxed primitive

Yes

DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE

Synchronization on Integer could deadlock

interned String object

No

DL_SYNCHRONIZATION_ON_SHARED_CONSTANT

n/a

String literal

Yes

Synchronization on interned String could deadlock

getClass() lock object

No

WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL

n/a

ReentrantLock lock object

No

n/a

Collection view

No

n/a

...

Noncompliant Code Example

Flagged

Message

Boolean lock object

No

No obvious issues

Boxed primitive

No

No obvious issues

interned String object

No

No obvious issues

String literal

No

No data available about field accesses

getClass() lock object

NoWL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL

No data available about field accesses

ReentrantLock lock object

No

No obvious issues

Collection view

No

No obvious issues

...