Program: 33177
Project: 33177
Buggy source:
public CsdlComplexType getComplexType(final FullQualifiedName complexTypeName) throws ODataException {
  if (complexTypeName.equals(nameCTPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16));
  }
 else   if (complexTypeName.equals(nameCTAllPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyString,PropertyProvider.propertyBinary,PropertyProvider.propertyBoolean,PropertyProvider.propertyByte,PropertyProvider.propertyDate,PropertyProvider.propertyDateTimeOffset_Precision,PropertyProvider.propertyDecimal_Scale_Precision,PropertyProvider.propertySingle,PropertyProvider.propertyDouble,PropertyProvider.propertyDuration,PropertyProvider.propertyGuid,PropertyProvider.propertyInt16,PropertyProvider.propertyInt32,PropertyProvider.propertyInt64,PropertyProvider.propertySByte,PropertyProvider.propertyTimeOfDay_Precision));
  }
 else   if (complexTypeName.equals(nameCTCollAllPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.collPropertyString,PropertyProvider.collPropertyBoolean,PropertyProvider.collPropertyByte,PropertyProvider.collPropertySByte,PropertyProvider.collPropertyInt16,PropertyProvider.collPropertyInt32,PropertyProvider.collPropertyInt64,PropertyProvider.collPropertySingle,PropertyProvider.collPropertyDouble,PropertyProvider.collPropertyDecimal,PropertyProvider.collPropertyBinary,PropertyProvider.collPropertyDate,PropertyProvider.collPropertyDateTimeOffset,PropertyProvider.collPropertyDuration,PropertyProvider.collPropertyGuid,PropertyProvider.collPropertyTimeOfDay));
  }
 else   if (complexTypeName.equals(nameCTTwoPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16_NotNullable,PropertyProvider.propertyString_NotNullable));
  }
 else   if (complexTypeName.equals(nameCTCompNav)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyString,PropertyProvider.propertyCompNav_CTNavFiveProp));
  }
 else   if (complexTypeName.equals(nameCTMixPrimCollComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16,PropertyProvider.collPropertyString,PropertyProvider.propertyComp_CTTwoPrim,PropertyProvider.collPropertyComp_CTTwoPrim));
  }
 else   if (complexTypeName.equals(nameCTBase)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTTwoPrim).setProperties(Arrays.asList(new CsdlProperty().setName("String_Node_Str").setType(PropertyProvider.nameString)));
  }
 else   if (complexTypeName.equals(nameCTTwoBase)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTBase);
  }
 else   if (complexTypeName.equals(nameCTCompComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyComp_CTTwoPrim));
  }
 else   if (complexTypeName.equals(nameCTCompCollComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.collPropertyComp_CTTwoPrim));
  }
 else   if (complexTypeName.equals(nameCTPrimComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16,PropertyProvider.propertyComp_CTAllPrim));
  }
 else   if (complexTypeName.equals(nameCTNavFiveProp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16)).setNavigationProperties((Arrays.asList(PropertyProvider.collectionNavPropertyETTwoKeyNavOne_ETTwoKeyNav,PropertyProvider.collectionNavPropertyETTwoKeyNavMany_ETTwoKeyNav_WithPartnerERKeyNavOne,new CsdlNavigationProperty().setName("String_Node_Str").setType(EntityTypeProvider.nameETMedia),new CsdlNavigationProperty().setName("String_Node_Str").setType(EntityTypeProvider.nameETMedia).setCollection(true))));
  }
 else   if (complexTypeName.equals(nameCTNavCont)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(new ArrayList<CsdlProperty>()).setNavigationProperties(Arrays.asList(PropertyProvider.navPropertyETKeyNavOne_CT_ETeyNav,PropertyProvider.collectionNavPropertyETKeyNavMany_CT_ETKeyNav,PropertyProvider.navPropertyETTwoKeyNavOne_CT_ETTwoKeyNav,PropertyProvider.collectionNavPropertyETTwoKeyNavMany_CT_ETTwoKeyNav));
  }
 else   if (complexTypeName.equals(nameCTBasePrimCompNav)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTPrimComp).setNavigationProperties(Arrays.asList(PropertyProvider.collectionNavPropertyETTwoKeyNavMany_ETTwoKeyNav_WithPartnerERKeyNavOne,PropertyProvider.collectionNavPropertyETTwoKeyNavOne_ETTwoKeyNav,PropertyProvider.navPropertyETKeyNavOne_ETKeyNav,PropertyProvider.collectionNavPropertyETKeyNavMany_ETKeyNav));
  }
 else   if (complexTypeName.equals(nameCTTwoBasePrimCompNav)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTBasePrimCompNav);
  }
 else   if (complexTypeName.equals(nameCTMixEnumDef)) {
    return new CsdlComplexType().setName(nameCTMixEnumDef.getName()).setProperties(Arrays.asList(PropertyProvider.propertyEnumString_ENString,PropertyProvider.collPropertyEnumString_ENString,PropertyProvider.propertyTypeDefinition_TDString,PropertyProvider.collPropertyTypeDefinition_TDString));
  }
  return null;
}

Fixed version (ground truth):
public CsdlComplexType getComplexType(final FullQualifiedName complexTypeName) throws ODataException {
  if (complexTypeName.equals(nameCTPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16));
  }
 else   if (complexTypeName.equals(nameCTAllPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyString,PropertyProvider.propertyBinary,PropertyProvider.propertyBoolean,PropertyProvider.propertyByte,PropertyProvider.propertyDate,PropertyProvider.propertyDateTimeOffset_Precision,PropertyProvider.propertyDecimal_Scale_Precision,PropertyProvider.propertySingle,PropertyProvider.propertyDouble,PropertyProvider.propertyDuration,PropertyProvider.propertyGuid,PropertyProvider.propertyInt16,PropertyProvider.propertyInt32,PropertyProvider.propertyInt64,PropertyProvider.propertySByte,PropertyProvider.propertyTimeOfDay_Precision));
  }
 else   if (complexTypeName.equals(nameCTCollAllPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.collPropertyString,PropertyProvider.collPropertyBoolean,PropertyProvider.collPropertyByte,PropertyProvider.collPropertySByte,PropertyProvider.collPropertyInt16,PropertyProvider.collPropertyInt32,PropertyProvider.collPropertyInt64,PropertyProvider.collPropertySingle,PropertyProvider.collPropertyDouble,PropertyProvider.collPropertyDecimal,PropertyProvider.collPropertyBinary,PropertyProvider.collPropertyDate,PropertyProvider.collPropertyDateTimeOffset,PropertyProvider.collPropertyDuration,PropertyProvider.collPropertyGuid,PropertyProvider.collPropertyTimeOfDay));
  }
 else   if (complexTypeName.equals(nameCTTwoPrim)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16_NotNullable,PropertyProvider.propertyString_NotNullable));
  }
 else   if (complexTypeName.equals(nameCTCompNav)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyString,PropertyProvider.propertyCompNav_CTNavFiveProp));
  }
 else   if (complexTypeName.equals(nameCTMixPrimCollComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16,PropertyProvider.collPropertyString,PropertyProvider.propertyComp_CTTwoPrim,PropertyProvider.collPropertyComp_CTTwoPrim));
  }
 else   if (complexTypeName.equals(nameCTBase)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTTwoPrim).setProperties(Arrays.asList(new CsdlProperty().setName("String_Node_Str").setType(PropertyProvider.nameString)));
  }
 else   if (complexTypeName.equals(nameCTTwoBase)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTBase);
  }
 else   if (complexTypeName.equals(nameCTCompComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyComp_CTTwoPrim));
  }
 else   if (complexTypeName.equals(nameCTCompCompExtended)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTCompComp).setProperties(Arrays.asList(PropertyProvider.propertyDate));
  }
 else   if (complexTypeName.equals(nameCTCompCollComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.collPropertyComp_CTTwoPrim));
  }
 else   if (complexTypeName.equals(nameCTPrimComp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16,PropertyProvider.propertyComp_CTAllPrim));
  }
 else   if (complexTypeName.equals(nameCTNavFiveProp)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(Arrays.asList(PropertyProvider.propertyInt16)).setNavigationProperties((Arrays.asList(PropertyProvider.collectionNavPropertyETTwoKeyNavOne_ETTwoKeyNav,PropertyProvider.collectionNavPropertyETTwoKeyNavMany_ETTwoKeyNav_WithPartnerERKeyNavOne,new CsdlNavigationProperty().setName("String_Node_Str").setType(EntityTypeProvider.nameETMedia),new CsdlNavigationProperty().setName("String_Node_Str").setType(EntityTypeProvider.nameETMedia).setCollection(true))));
  }
 else   if (complexTypeName.equals(nameCTNavCont)) {
    return new CsdlComplexType().setName("String_Node_Str").setProperties(new ArrayList<CsdlProperty>()).setNavigationProperties(Arrays.asList(PropertyProvider.navPropertyETKeyNavOne_CT_ETeyNav,PropertyProvider.collectionNavPropertyETKeyNavMany_CT_ETKeyNav,PropertyProvider.navPropertyETTwoKeyNavOne_CT_ETTwoKeyNav,PropertyProvider.collectionNavPropertyETTwoKeyNavMany_CT_ETTwoKeyNav));
  }
 else   if (complexTypeName.equals(nameCTBasePrimCompNav)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTPrimComp).setNavigationProperties(Arrays.asList(PropertyProvider.collectionNavPropertyETTwoKeyNavMany_ETTwoKeyNav_WithPartnerERKeyNavOne,PropertyProvider.collectionNavPropertyETTwoKeyNavOne_ETTwoKeyNav,PropertyProvider.navPropertyETKeyNavOne_ETKeyNav,PropertyProvider.collectionNavPropertyETKeyNavMany_ETKeyNav));
  }
 else   if (complexTypeName.equals(nameCTTwoBasePrimCompNav)) {
    return new CsdlComplexType().setName("String_Node_Str").setBaseType(nameCTBasePrimCompNav);
  }
 else   if (complexTypeName.equals(nameCTMixEnumDef)) {
    return new CsdlComplexType().setName(nameCTMixEnumDef.getName()).setProperties(Arrays.asList(PropertyProvider.propertyEnumString_ENString,PropertyProvider.collPropertyEnumString_ENString,PropertyProvider.propertyTypeDefinition_TDString,PropertyProvider.collPropertyTypeDefinition_TDString));
  }
  return null;
}