#vulnerable code 
                             public static void setRootPath(String rootPath) {
		Log.info("Setting 'root' application path", "path", rootPath);
		Conf.rootPath = cleanPath(rootPath);
		setStaticPath(Conf.rootPath + "/static");
		setDynamicPath(Conf.rootPath + "/dynamic");
		setConfigPath(Conf.rootPath);
		setTemplatesPath(Conf.rootPath + "/templates");
	} 
                            #location 7 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                             public static void setRootPath(String rootPath) {
		Log.info("Setting 'root' application path", "path", rootPath);
		Conf.rootPath = cleanPath(rootPath);
		setStaticPath(Conf.rootPath + "/static");
		setDynamicPath(Conf.rootPath + "/dynamic");
		setConfigPath(Conf.rootPath);
	}