From: bdemsky Date: Tue, 6 Aug 2019 19:45:38 +0000 (-0700) Subject: prevent arraylist resize from affecting state matching X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a64ffb1e7b4e810af22e7b419e924dd38fa1fc0a;p=smartthings-infrastructure.git prevent arraylist resize from affecting state matching --- diff --git a/GlobalVariables/GlobalVariablesEachApp.groovy b/GlobalVariables/GlobalVariablesEachApp.groovy index ae8b936..ba78f98 100644 --- a/GlobalVariables/GlobalVariablesEachApp.groovy +++ b/GlobalVariables/GlobalVariablesEachApp.groovy @@ -3,11 +3,11 @@ def state = [home:[],away:[],night:[]] //Create a global logger object for methods def log = new Logger() //Create a global variable for Functions in Subscribe method -def functionList = [] +def functionList = new ArrayList(20) //Create a global variable for Objects in Subscribe method -def objectList = [] +def objectList = new ArrayList(20) //Create a global variable for Events in Subscribe method -def eventList = [] +def eventList = new ArrayList(20) //Create a global variable for settings def settings //Zip code