Skip to content

Instantly share code, notes, and snippets.

@codahale
Created June 14, 2011 15:35
Show Gist options
  • Save codahale/1025155 to your computer and use it in GitHub Desktop.
Save codahale/1025155 to your computer and use it in GitHub Desktop.
public class ClassWithLazyVal
implements ScalaObject
{
private String name;
public volatile int bitmap$0;
public String name()
{
if (
(this.bitmap$0 & 0x1) == 0);
synchronized (this)
{
if (
(this.bitmap$0 & 0x1) == 0) {
this.name = "Bernard"; this.bitmap$0 |= 1; } return this.name;
}
}
}
class ClassWithLazyVal {
lazy val name = "Bernard"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment