samples/deadlock/src/org/apidesign/deadlock/amoebashake/2000-06-01.txt
changeset 105 5c7a65ed657a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/deadlock/src/org/apidesign/deadlock/amoebashake/2000-06-01.txt	Sat Jun 14 09:54:29 2008 +0200
     1.3 @@ -0,0 +1,10 @@
     1.4 +public final Node getNodeDelegate () {
     1.5 +    if (nodeDelegate == null) {
     1.6 +        synchronized (this) {
     1.7 +            if (nodeDelegate == null) {
     1.8 +                nodeDelegate = createNodeDelegate ();
     1.9 +            }
    1.10 +        }
    1.11 +    }
    1.12 +    return nodeDelegate;
    1.13 +}