Program: 125022
Project: 125022
Buggy source:
/** 
 * DOC ycbai Comment method "detectClusterChangeOfMRProcess". <p> Detect the changes of hadoop related parameters from Process to Hadoop cluster. </p>
 * @param hcConnection
 * @param process
 * @return true if there are some changes from them, otherwise return false.
 */
public static boolean detectClusterChangeOfProcess(HadoopClusterConnection hcConnection,IProcess process){
  String distribution=hcConnection.getDistribution();
  String version=hcConnection.getVersion();
  String customJars=hcConnection.getParameters().get(ConnParameterKeys.CONN_PARA_KEY_HADOOP_CLUSTER_ID);
  String namenode=hcConnection.getNameNodeURI();
  String jobTracker=hcConnection.getJobTrackerURI();
  boolean useKrb=hcConnection.isEnableKerberos();
  String nnPrincipal=hcConnection.getPrincipal();
  String userName=hcConnection.getUserName();
  String distributionPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.DISTRIBUTION.getParameterName());
  String versionPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.VERSION.getParameterName());
  String customJarsPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.CUSTOM_JARS.getParameterName());
  String namenodePr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.NAMENODE.getParameterName());
  String jobTrackerPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.JOB_TRACKER.getParameterName());
  String useKrbPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.USE_KRB.getParameterName());
  String nnPrincipalPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.NN_PRINCIPAL.getParameterName());
  String userNamePr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.USERNAME.getParameterName());
  if (distribution != null && !distribution.equals(distributionPr) || version != null && !version.equals(versionPr) || customJars != null && !customJars.equals(customJarsPr) || namenode != null && !namenode.equals(namenodePr) || jobTracker != null && !jobTracker.equals(jobTrackerPr) || useKrb != Boolean.valueOf(useKrbPr) || nnPrincipal != null && nnPrincipal.equals(nnPrincipalPr) || userName != null && userName.equals(userNamePr)) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * DOC ycbai Comment method "detectClusterChangeOfMRProcess". <p> Detect the changes of hadoop related parameters from Process to Hadoop cluster. </p>
 * @param hcConnection
 * @param process
 * @return true if there are some changes from them, otherwise return false.
 */
public static boolean detectClusterChangeOfProcess(HadoopClusterConnection hcConnection,IProcess process){
  String distribution=hcConnection.getDistribution();
  String version=hcConnection.getDfVersion();
  String customJars=hcConnection.getParameters().get(ConnParameterKeys.CONN_PARA_KEY_HADOOP_CLUSTER_ID);
  String namenode=hcConnection.getNameNodeURI();
  String jobTracker=hcConnection.getJobTrackerURI();
  boolean useKrb=hcConnection.isEnableKerberos();
  String nnPrincipal=hcConnection.getPrincipal();
  String userName=hcConnection.getUserName();
  String distributionPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.DISTRIBUTION.getParameterName());
  String versionPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.VERSION.getParameterName());
  String customJarsPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.CUSTOM_JARS.getParameterName());
  String namenodePr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.NAMENODE.getParameterName());
  String jobTrackerPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.JOB_TRACKER.getParameterName());
  String useKrbPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.USE_KRB.getParameterName());
  String nnPrincipalPr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.NN_PRINCIPAL.getParameterName());
  String userNamePr=HCParameterUtil.getParameterRealValue(process,process,EHadoopRepositoryToMapReduce.USERNAME.getParameterName());
  if (distribution != null && !distribution.equals(distributionPr) || version != null && !version.equals(versionPr) || customJars != null && !customJars.equals(customJarsPr) || namenode != null && !namenode.equals(namenodePr) || jobTracker != null && !jobTracker.equals(jobTrackerPr) || useKrb != Boolean.valueOf(useKrbPr) || nnPrincipal != null && !nnPrincipal.equals(nnPrincipalPr) || userName != null && !userName.equals(userNamePr)) {
    return true;
  }
  return false;
}