Skip to content

Instantly share code, notes, and snippets.

@michiakig
Created November 19, 2012 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michiakig/4113695 to your computer and use it in GitHub Desktop.
Save michiakig/4113695 to your computer and use it in GitHub Desktop.
CheckThread blog post Chain.java
public class Chain
{
@ThreadSafe
public void threadSafeMethod()
{
middleman();
}
public void middleman()
{
notThreadSafeMethod();
}
@NotThreadSafe
public void notThreadSafeMethod()
{
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment