Program: 126218
Project: 126218
Buggy source:
/** 
 * Add the properties for job.
 */
@Override @SuppressWarnings("String_Node_Str") protected void addProperties(Model model){
  super.addProperties(model);
  Properties properties=model.getProperties();
  final IProcessor jProcessor=getJobProcessor();
  final IProcess process=jProcessor.getProcess();
  final IContext context=jProcessor.getContext();
  final Property property=jProcessor.getProperty();
  String jobClassPackageFolder=JavaResourcesHelper.getJobClassPackageFolder(property.getItem());
  String jobClassPackage=JavaResourcesHelper.getJobClassPackageName(property.getItem());
  String jobFolderName=JavaResourcesHelper.getJobFolderName(property.getLabel(),property.getVersion());
  Project project=ProjectManager.getInstance().getProject(property);
  if (project == null) {
    project=ProjectManager.getInstance().getCurrentProject().getEmfProject();
  }
  String mainProjectBranch=ProjectManager.getInstance().getMainProjectBranch(project);
  if (mainProjectBranch == null) {
    mainProjectBranch=SVNConstant.NAME_TRUNK;
  }
  JobInfoProperties jobInfoProp=new JobInfoProperties((ProcessItem)property.getItem(),context.getName(),isApplyContextToChild(),isAddStat());
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobPath,jobClassPackageFolder);
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobPackage,jobClassPackage);
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProjectName,jobInfoProp.getProperty(JobInfoProperties.PROJECT_NAME,project.getTechnicalLabel()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProjectId,jobInfoProp.getProperty(JobInfoProperties.PROJECT_ID,String.valueOf(project.getId())));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProjectBranch,jobInfoProp.getProperty(JobInfoProperties.BRANCH,mainProjectBranch));
  if (PomIdsHelper.FLAG_FIXING_ATIFACT_ID) {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobName,"String_Node_Str");
  }
 else {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobName,jobInfoProp.getProperty(JobInfoProperties.JOB_NAME,property.getLabel()));
  }
  if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobVersion,jobInfoProp.getProperty(JobInfoProperties.JOB_VERSION,process.getVersion()));
  }
 else {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobVersion,"String_Node_Str");
  }
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobDate,jobInfoProp.getProperty(JobInfoProperties.DATE,JobInfoProperties.DATAFORMAT.format(new Date())));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobContext,"String_Node_Str" + jobInfoProp.getProperty(JobInfoProperties.CONTEXT_NAME,context.getName()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobId,jobInfoProp.getProperty(JobInfoProperties.JOB_ID,process.getId()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobClass,"String_Node_Str");
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobStat,jobInfoProp.getProperty(JobInfoProperties.ADD_STATIC_CODE,Boolean.FALSE.toString()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobApplyContextToChildren,jobInfoProp.getProperty(JobInfoProperties.APPLY_CONTEXY_CHILDREN,Boolean.FALSE.toString()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProductVersion,jobInfoProp.getProperty(JobInfoProperties.COMMANDLINE_VERSION,VersionUtils.getVersion()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobBatClasspath,this.getWindowsClasspath());
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobShClasspath,this.getUnixClasspath());
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobScriptAddition,"String_Node_Str");
  String finalNameExp="String_Node_Str";
  String finalNameStr=PomUtil.getJobFinalName(property);
  if (PomIdsHelper.FLAG_SPECIAL_FINAL_NAME) {
    finalNameExp="String_Node_Str";
  }
 else {
    if (PomIdsHelper.FLAG_FIXING_ATIFACT_ID) {
      if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
        finalNameExp="String_Node_Str";
      }
    }
 else {
      if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
        finalNameExp="String_Node_Str";
      }
 else {
        finalNameExp="String_Node_Str";
      }
    }
  }
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobFinalName,finalNameExp);
}

Fixed version (ground truth):
/** 
 * Add the properties for job.
 */
@Override @SuppressWarnings("String_Node_Str") protected void addProperties(Model model){
  super.addProperties(model);
  Properties properties=model.getProperties();
  final IProcessor jProcessor=getJobProcessor();
  final IProcess process=jProcessor.getProcess();
  final IContext context=jProcessor.getContext();
  final Property property=jProcessor.getProperty();
  String jobClassPackageFolder=JavaResourcesHelper.getJobClassPackageFolder(property.getItem());
  String jobClassPackage=JavaResourcesHelper.getJobClassPackageName(property.getItem());
  String jobFolderName=JavaResourcesHelper.getJobFolderName(property.getLabel(),property.getVersion());
  Project project=ProjectManager.getInstance().getProject(property);
  if (project == null) {
    project=ProjectManager.getInstance().getCurrentProject().getEmfProject();
  }
  String mainProjectBranch=ProjectManager.getInstance().getMainProjectBranch(project);
  if (mainProjectBranch == null) {
    mainProjectBranch=SVNConstant.NAME_TRUNK;
  }
  JobInfoProperties jobInfoProp=new JobInfoProperties((ProcessItem)property.getItem(),context.getName(),isApplyContextToChild(),isAddStat());
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobPath,jobClassPackageFolder);
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobPackage,jobClassPackage);
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProjectName,jobInfoProp.getProperty(JobInfoProperties.PROJECT_NAME,project.getTechnicalLabel()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProjectId,jobInfoProp.getProperty(JobInfoProperties.PROJECT_ID,String.valueOf(project.getId())));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProjectBranch,jobInfoProp.getProperty(JobInfoProperties.BRANCH,mainProjectBranch));
  if (PomIdsHelper.FLAG_FIXING_ATIFACT_ID) {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobName,"String_Node_Str");
  }
 else {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobName,jobInfoProp.getProperty(JobInfoProperties.JOB_NAME,property.getLabel()));
  }
  if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobVersion,jobInfoProp.getProperty(JobInfoProperties.JOB_VERSION,process.getVersion()));
  }
 else {
    checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobVersion,"String_Node_Str");
  }
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobDate,jobInfoProp.getProperty(JobInfoProperties.DATE,JobInfoProperties.DATAFORMAT.format(new Date())));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobContext,"String_Node_Str" + jobInfoProp.getProperty(JobInfoProperties.CONTEXT_NAME,context.getName()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobId,jobInfoProp.getProperty(JobInfoProperties.JOB_ID,process.getId()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobClass,"String_Node_Str");
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobStat,jobInfoProp.getProperty(JobInfoProperties.ADD_STATIC_CODE,Boolean.FALSE.toString()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobApplyContextToChildren,jobInfoProp.getProperty(JobInfoProperties.APPLY_CONTEXY_CHILDREN,Boolean.FALSE.toString()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.ProductVersion,jobInfoProp.getProperty(JobInfoProperties.COMMANDLINE_VERSION,VersionUtils.getVersion()));
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobBatClasspath,this.getWindowsClasspath());
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobBatAddition,this.getWindowsScriptAddition());
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobShClasspath,this.getUnixClasspath());
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobShAddition,this.getUnixScriptAddition());
  String finalNameExp="String_Node_Str";
  String finalNameStr=PomUtil.getJobFinalName(property);
  if (PomIdsHelper.FLAG_SPECIAL_FINAL_NAME) {
    finalNameExp="String_Node_Str";
  }
 else {
    if (PomIdsHelper.FLAG_FIXING_ATIFACT_ID) {
      if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
        finalNameExp="String_Node_Str";
      }
    }
 else {
      if (PomIdsHelper.FLAG_VERSION_WITH_CLASSIFIER) {
        finalNameExp="String_Node_Str";
      }
 else {
        finalNameExp="String_Node_Str";
      }
    }
  }
  checkPomProperty(properties,"String_Node_Str",ETalendMavenVariables.JobFinalName,finalNameExp);
}