Skip to content

Conversation

@davecramer
Copy link
Contributor

Small optimization to make the code simpler


public void lock() {
lock.lock();
public ResourceLock obtain() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to reconsider a method name. It's not clear what "obtain" on plugin manager object does. Does it obtain a plugin manager?

/*
For testing only
*/
public void closeResourceLock() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"releaseLock"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not married to any name. releaseLock is fine, and then we can use acquireLock instead of obtain.

public void close() {
this.unlock();
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

}
}

} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

@davecramer
Copy link
Contributor Author

close in favour of #265

@davecramer davecramer closed this Nov 17, 2022
@davecramer davecramer deleted the resourcelock branch November 17, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants