Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated automated detection

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

CON02- J

medium

probable

medium

P8

L2

Automated Detection

Currently, SureLogic Flashlight does not detect all violations of this guideline. It detects:

Noncompliant Code Example

Message

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

Noncompliant Code Example

Flagged

Message

Boolean lock object

Yes

Synchronization on Boolean could deadlock

Boxed primitive

Yes

Synchronization on Integer could deadlock

interned String object

No

n/a

String literal

Yes

Synchronization on interned String could deadlock

getClass() lock object

No

n/a

ReentrantLock lock object

No

n/a

Collection view

No

n/a

The following table summarizes the examples flagged as violations by SureLogic FlashlightIt does not detect:

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

No

No data available about field accesses

ReentrantLock lock object

No

No obvious issues

Collection view

No

No obvious issues

Related Vulnerabilities

...