Program: 66258
Project: 66258
Buggy source:
private Property buildTransformationProperty(JavaHasAnnotations javaHasAnnotations,JavaClass cls){
  Property property=new Property(helper);
  org.eclipse.persistence.oxm.annotations.XmlTransformation transformationAnnotation=(org.eclipse.persistence.oxm.annotations.XmlTransformation)helper.getAnnotation(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlTransformation.class);
  XmlTransformation transformation=new XmlTransformation();
  transformation.setOptional(transformationAnnotation.optional());
  org.eclipse.persistence.oxm.annotations.XmlReadTransformer readTransformer=(org.eclipse.persistence.oxm.annotations.XmlReadTransformer)helper.getAnnotation(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlReadTransformer.class);
  if (readTransformer != null) {
    org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlReadTransformer xmlReadTransformer=new org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlReadTransformer();
    if (!(readTransformer.transformerClass() == void.class)) {
      xmlReadTransformer.setTransformerClass(readTransformer.transformerClass().getName());
    }
 else     if (!(readTransformer.method().equals("String_Node_Str"))) {
      xmlReadTransformer.setMethod(readTransformer.method());
    }
    transformation.setXmlReadTransformer(xmlReadTransformer);
  }
  org.eclipse.persistence.oxm.annotations.XmlWriteTransformer[] transformers=null;
  if (helper.isAnnotationPresent(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class)) {
    org.eclipse.persistence.oxm.annotations.XmlWriteTransformer writeTransformer=(org.eclipse.persistence.oxm.annotations.XmlWriteTransformer)helper.getAnnotation(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class);
    transformers=new org.eclipse.persistence.oxm.annotations.XmlWriteTransformer[]{writeTransformer};
  }
 else   if (helper.isAnnotationPresent(javaHasAnnotations,XmlWriteTransformers.class)) {
    XmlWriteTransformers writeTransformers=(XmlWriteTransformers)helper.getAnnotation(javaHasAnnotations,XmlWriteTransformers.class);
    transformers=writeTransformers.value();
  }
  if (transformers != null) {
    for (    org.eclipse.persistence.oxm.annotations.XmlWriteTransformer next : transformers) {
      org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlWriteTransformer xmlWriteTransformer=new org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlWriteTransformer();
      if (!(next.transformerClass() == void.class)) {
        xmlWriteTransformer.setTransformerClass(next.transformerClass().getName());
      }
 else       if (!(next.method().equals("String_Node_Str"))) {
        xmlWriteTransformer.setMethod(next.method());
      }
      xmlWriteTransformer.setXmlPath(next.xpath());
      transformation.getXmlWriteTransformer().add(xmlWriteTransformer);
    }
  }
  property.setXmlTransformation(transformation);
  property.setIsXmlTransformation(true);
  return property;
}

Fixed version (ground truth):
private Property buildTransformationProperty(JavaHasAnnotations javaHasAnnotations,JavaClass cls){
  Property property=new Property(helper);
  org.eclipse.persistence.oxm.annotations.XmlTransformation transformationAnnotation=(org.eclipse.persistence.oxm.annotations.XmlTransformation)helper.getAnnotation(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlTransformation.class);
  XmlTransformation transformation=new XmlTransformation();
  transformation.setOptional(transformationAnnotation.optional());
  org.eclipse.persistence.oxm.annotations.XmlReadTransformer readTransformer=(org.eclipse.persistence.oxm.annotations.XmlReadTransformer)helper.getAnnotation(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlReadTransformer.class);
  if (readTransformer != null) {
    org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlReadTransformer xmlReadTransformer=new org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlReadTransformer();
    if (!(readTransformer.transformerClass() == AttributeTransformer.class)) {
      xmlReadTransformer.setTransformerClass(readTransformer.transformerClass().getName());
    }
 else     if (!(readTransformer.method().equals("String_Node_Str"))) {
      xmlReadTransformer.setMethod(readTransformer.method());
    }
    transformation.setXmlReadTransformer(xmlReadTransformer);
  }
  org.eclipse.persistence.oxm.annotations.XmlWriteTransformer[] transformers=null;
  if (helper.isAnnotationPresent(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class)) {
    org.eclipse.persistence.oxm.annotations.XmlWriteTransformer writeTransformer=(org.eclipse.persistence.oxm.annotations.XmlWriteTransformer)helper.getAnnotation(javaHasAnnotations,org.eclipse.persistence.oxm.annotations.XmlWriteTransformer.class);
    transformers=new org.eclipse.persistence.oxm.annotations.XmlWriteTransformer[]{writeTransformer};
  }
 else   if (helper.isAnnotationPresent(javaHasAnnotations,XmlWriteTransformers.class)) {
    XmlWriteTransformers writeTransformers=(XmlWriteTransformers)helper.getAnnotation(javaHasAnnotations,XmlWriteTransformers.class);
    transformers=writeTransformers.value();
  }
  if (transformers != null) {
    for (    org.eclipse.persistence.oxm.annotations.XmlWriteTransformer next : transformers) {
      org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlWriteTransformer xmlWriteTransformer=new org.eclipse.persistence.jaxb.xmlmodel.XmlTransformation.XmlWriteTransformer();
      if (!(next.transformerClass() == FieldTransformer.class)) {
        xmlWriteTransformer.setTransformerClass(next.transformerClass().getName());
      }
 else       if (!(next.method().equals("String_Node_Str"))) {
        xmlWriteTransformer.setMethod(next.method());
      }
      xmlWriteTransformer.setXmlPath(next.xpath());
      transformation.getXmlWriteTransformer().add(xmlWriteTransformer);
    }
  }
  property.setXmlTransformation(transformation);
  property.setIsXmlTransformation(true);
  return property;
}