Skip to content

Unnecessary synchronised lock #610

@cdluv

Description

@cdluv

I was just passing through...

Using a guard object helps, but perhaps having a look here may make the code simpler:
https://docs.oracle.com/javase/tutorial/essential/concurrency/locksync.html

I'd go for making methods synchronised, then all that locking stuff goes away and makes the code easier to understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions