made ClassAnalyzer thread safe by java monitor pattern