Skip to content

Accesses to lock objects by a synchronized block should be considered safe #45

@reprogrammer

Description

@reprogrammer

Currently, the detector for VNA00-J reports accesses to the variable lock in the following piece of code as unsafe:

synchronized (lock) {
  ...
}

The detector shouldn't report such uses of a lock object as unsafe instructions.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions