ThreadInfo () { ThreadInfo info = threadMap.get(); if (info == null) { synchronized (ResolveProfiler.class) { info = new ThreadInfo(PATH + "out" + fileCount + ".txt"); fileCount++; } threadMap.set(info); } return info; }