Program: 124089
Project: 124089
Buggy source:
/** 
 * DOC mhelleboid Comment method "getEClass".
 * @param type
 * @return
 */
private EClass getEClass(ERepositoryObjectType type){
  if (type == ERepositoryObjectType.BUSINESS_PROCESS) {
    return BusinessPackage.eINSTANCE.getBusinessProcess();
  }
 else   if (type == ERepositoryObjectType.PROCESS) {
    return BusinessPackage.eINSTANCE.getProcess();
  }
 else   if (type == ERepositoryObjectType.ROUTINES) {
    return BusinessPackage.eINSTANCE.getRoutine();
  }
 else   if (type == ERepositoryObjectType.DOCUMENTATION || type == ERepositoryObjectType.JOB_DOC || type == ERepositoryObjectType.JOBLET_DOC) {
    return BusinessPackage.eINSTANCE.getDocumentation();
  }
 else   if (type == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return BusinessPackage.eINSTANCE.getDatabaseMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_SAPCONNECTIONS) {
    return BusinessPackage.eINSTANCE.getSapFunctionMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_SAP_FUNCTION) {
    return BusinessPackage.eINSTANCE.getSAPFunction();
  }
 else   if (type == ERepositoryObjectType.METADATA_CON_TABLE) {
    return BusinessPackage.eINSTANCE.getTableMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_DELIMITED) {
    return BusinessPackage.eINSTANCE.getFileDelimitedMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_POSITIONAL) {
    return BusinessPackage.eINSTANCE.getFilePositionalMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_REGEXP) {
    return BusinessPackage.eINSTANCE.getFileRegexpMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_XML) {
    return BusinessPackage.eINSTANCE.getFileXmlMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_EXCEL) {
    return BusinessPackage.eINSTANCE.getFileExcelMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_LDIF) {
    return BusinessPackage.eINSTANCE.getFileLdifMetadata();
  }
 else   if (type == ERepositoryObjectType.CONTEXT) {
    return BusinessPackage.eINSTANCE.getContext();
  }
 else   if (type == ERepositoryObjectType.METADATA_GENERIC_SCHEMA) {
    return BusinessPackage.eINSTANCE.getGenericSchemaMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_CON_QUERY) {
    return BusinessPackage.eINSTANCE.getQuery();
  }
 else   if (type == ERepositoryObjectType.JOBLET) {
    return BusinessPackage.eINSTANCE.getJoblet();
  }
 else   if (type == ERepositoryObjectType.METADATA_LDAP_SCHEMA) {
    return BusinessPackage.eINSTANCE.getLdap();
  }
 else   if (type == ERepositoryObjectType.METADATA_SALESFORCE_SCHEMA) {
    return BusinessPackage.eINSTANCE.getSalesforce();
  }
 else   if (type == ERepositoryObjectType.METADATA_WSDL_SCHEMA) {
    return BusinessPackage.eINSTANCE.getWsdl();
  }
 else   if (type == ERepositoryObjectType.SQLPATTERNS) {
    return BusinessPackage.eINSTANCE.getSQLPattern();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_EBCDIC) {
    return BusinessPackage.eINSTANCE.getCopybook();
  }
 else   if (type == ERepositoryObjectType.METADATA_MDMCONNECTION) {
    return BusinessPackage.eINSTANCE.getMDM();
  }
  return null;
}

Fixed version (ground truth):
/** 
 * DOC mhelleboid Comment method "getEClass".
 * @param type
 * @return
 */
private EClass getEClass(ERepositoryObjectType type){
  if (type == ERepositoryObjectType.BUSINESS_PROCESS) {
    return BusinessPackage.eINSTANCE.getBusinessProcess();
  }
 else   if (type == ERepositoryObjectType.PROCESS) {
    return BusinessPackage.eINSTANCE.getProcess();
  }
 else   if (type == ERepositoryObjectType.ROUTINES) {
    return BusinessPackage.eINSTANCE.getRoutine();
  }
 else   if (type == ERepositoryObjectType.DOCUMENTATION || type == ERepositoryObjectType.JOB_DOC || type == ERepositoryObjectType.JOBLET_DOC) {
    return BusinessPackage.eINSTANCE.getDocumentation();
  }
 else   if (type == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return BusinessPackage.eINSTANCE.getDatabaseMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_SAPCONNECTIONS) {
    return BusinessPackage.eINSTANCE.getSapFunctionMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_SAP_FUNCTION) {
    return BusinessPackage.eINSTANCE.getSAPFunction();
  }
 else   if (type == ERepositoryObjectType.METADATA_CON_TABLE) {
    return BusinessPackage.eINSTANCE.getTableMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_DELIMITED) {
    return BusinessPackage.eINSTANCE.getFileDelimitedMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_POSITIONAL) {
    return BusinessPackage.eINSTANCE.getFilePositionalMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_REGEXP) {
    return BusinessPackage.eINSTANCE.getFileRegexpMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_XML) {
    return BusinessPackage.eINSTANCE.getFileXmlMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_EXCEL) {
    return BusinessPackage.eINSTANCE.getFileExcelMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_LDIF) {
    return BusinessPackage.eINSTANCE.getFileLdifMetadata();
  }
 else   if (type == ERepositoryObjectType.CONTEXT) {
    return BusinessPackage.eINSTANCE.getContext();
  }
 else   if (type == ERepositoryObjectType.METADATA_GENERIC_SCHEMA) {
    return BusinessPackage.eINSTANCE.getGenericSchemaMetadata();
  }
 else   if (type == ERepositoryObjectType.METADATA_CON_QUERY) {
    return BusinessPackage.eINSTANCE.getQuery();
  }
 else   if (type == ERepositoryObjectType.JOBLET) {
    return BusinessPackage.eINSTANCE.getJoblet();
  }
 else   if (type == ERepositoryObjectType.METADATA_LDAP_SCHEMA) {
    return BusinessPackage.eINSTANCE.getLdap();
  }
 else   if (type == ERepositoryObjectType.METADATA_SALESFORCE_SCHEMA) {
    return BusinessPackage.eINSTANCE.getSalesforce();
  }
 else   if (type == ERepositoryObjectType.METADATA_WSDL_SCHEMA) {
    return BusinessPackage.eINSTANCE.getWsdl();
  }
 else   if (type == ERepositoryObjectType.SQLPATTERNS) {
    return BusinessPackage.eINSTANCE.getSQLPattern();
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_EBCDIC) {
    return BusinessPackage.eINSTANCE.getCopybook();
  }
 else   if (type == ERepositoryObjectType.METADATA_MDMCONNECTION) {
    return BusinessPackage.eINSTANCE.getMDM();
  }
 else   if (type == ERepositoryObjectType.getTypeFromKey("String_Node_Str")) {
    return BusinessPackage.eINSTANCE.getService();
  }
  return null;
}