Created
June 14, 2011 15:35
-
-
Save codahale/1025155 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ClassWithLazyVal { | |
lazy val name = "Bernard" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment