package com.walmart.labs.pcs.normalize.utils;

import java.util.Observable;
import java.util.Observer;

/**
 * Created by pzhong1 on 1/15/15.
 */
public class ObserverExample {
    public ObserverExample(){
        ObservableExample.getObservableExample().addObserver(new Observer() {
            @Override
            public void update(Observable o, Object arg) {
                System.out.println("observer is called: " + arg);
            }
        });
    }
}

@@ -178,32 +178,15 @@
     
-public ObserverExample()
+static 
 %7B%0A  
@@ -434,16 +434,53 @@
     %7D);%0A
+    %7D%0A    public ObserverExample()%7B%0A%0A
     %7D%0A%7D%0A

move observer to static to make sure it is called once