output: #fixed code
                               private void createDefaultAccountPropertiesFile() {
  		Printer.instance.print("正在生成初始账户配置文件（" + this.confdir + ACCOUNT_PROPERTIES_FILE + "）...");
  		final Properties dap = new Properties();
  		dap.setProperty(DEFAULT_ACCOUNT_ID + ".pwd", DEFAULT_ACCOUNT_PWD);
  		dap.setProperty(DEFAULT_ACCOUNT_ID + ".auth", DEFAULT_ACCOUNT_AUTH);
  		dap.setProperty("authOverall", DEFAULT_AUTH_OVERALL);
  
  		try (FileOutputStream accountSettingOut = new FileOutputStream(this.confdir + ACCOUNT_PROPERTIES_FILE)) {
  			FileLock lock = accountSettingOut.getChannel().lock();
  			dap.store(accountSettingOut, "<This is the default kiftd account setting file. >");
  			lock.release();
  			Printer.instance.print("初始账户配置文件生成完毕。");
  		} catch (FileNotFoundException e) {
  			Printer.instance.print("错误：无法生成初始账户配置文件，存储路径不存在。");
  		} catch (IOException e2) {
  			Printer.instance.print("错误：无法生成初始账户配置文件，写入失败。");
  		}
  	}
input: #vulnerable code 
                               private void createDefaultAccountPropertiesFile() {
  		Printer.instance.print("正在生成初始账户配置文件（" + this.confdir + ACCOUNT_PROPERTIES_FILE + "）...");
  		final Properties dap = new Properties();
  		dap.setProperty(DEFAULT_ACCOUNT_ID + ".pwd", DEFAULT_ACCOUNT_PWD);
  		dap.setProperty(DEFAULT_ACCOUNT_ID + ".auth", DEFAULT_ACCOUNT_AUTH);
  		dap.setProperty("authOverall", DEFAULT_AUTH_OVERALL);
  		try {
  			dap.store(new FileOutputStream(this.confdir + ACCOUNT_PROPERTIES_FILE),
  					"<This is the default kiftd account setting file. >");
  			Printer.instance.print("初始账户配置文件生成完毕。");
  		} catch (FileNotFoundException e) {
  			Printer.instance.print("错误：无法生成初始账户配置文件，存储路径不存在。");
  		} catch (IOException e2) {
  			Printer.instance.print("错误：无法生成初始账户配置文件，写入失败。");
  		}
  	} 
                              #location 8 
                              #vulnerability type RESOURCE_LEAK