package fr.lifl.stc.stan.analyser; import fr.lifl.stc.stan.util.Printer; public class StatsEscape { static int newObj; static int capturedObj; public static void init() { newObj = 0; capturedObj = 0; } public static void add(int newO, int cO){ newObj += newO; capturedObj +=cO; } public static void print(){ Printer.println("new Objects = "+newObj); Printer.println("captured Objects = "+capturedObj); } }