Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions