Skip to content

Instantly share code, notes, and snippets.

@mjedynak
Created January 21, 2012 19:18
Show Gist options
  • Save mjedynak/1653643 to your computer and use it in GitHub Desktop.
Save mjedynak/1653643 to your computer and use it in GitHub Desktop.
private Object resource = new Object();
public synchronized Object getResource() {
return resource;
}
public synchronized void setResource(Object resource) {
this.resource = resource;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment