Upgrading/adapting fixes to Groovy 2.5.7 from Groovy 2.4.8.
[jpf-core.git] / examples / Empty.groovy
index 1b7beeb64134a756dd93fe2b24c6690167c1002e..4c130beb00c341293b3ef1514acd28143e5b1460 100644 (file)
@@ -4,25 +4,28 @@ class Empty {
        def installed() {
                // This is a standard debug statement in Groovy
                //log.debug "Installed with settings: ${settings}"
-               int x = 5;
-               int y = 6;
-               int result = x + y;
-               return result;
+               //int x = 5;
+               //int y = 6;
+               //int result = x + y;
+               //return result;
+               println "installed() is called!"
                //initialize()
        }
 
        // This function is where you initialize callbacks for event listeners
-       //def initialize() {
+       def initialize() {
                // The subscribe function takes a input, a state, and a callback method
                //subscribe(contact, "contact.open", openHandler)
                //subscribe(contact, "contact.closed", closedHandler)
-       //}
+               println "initialize() is called!"
+       }
 
        static void main(String[] args) {               
 
                //Empty emp = new Empty();
                //int result = emp.installed();
                //println result;
-               println "Test"
+               //emp.installed()
+               println "End of call!"
        }       
 }