Program: 112080
Project: 112080
Buggy source:
@SuppressWarnings("String_Node_Str") private void writeValue(Type type,Schema avroSchema,Object value){
  Schema.Type avroType=AvroSchemaConverter.getNonNull(avroSchema).getType();
  if (avroType.equals(Schema.Type.BOOLEAN)) {
    recordConsumer.addBoolean((Boolean)value);
  }
 else   if (avroType.equals(Schema.Type.INT)) {
    recordConsumer.addInteger(((Number)value).intValue());
  }
 else   if (avroType.equals(Schema.Type.LONG)) {
    recordConsumer.addLong(((Number)value).longValue());
  }
 else   if (avroType.equals(Schema.Type.FLOAT)) {
    recordConsumer.addFloat(((Number)value).floatValue());
  }
 else   if (avroType.equals(Schema.Type.DOUBLE)) {
    recordConsumer.addDouble(((Number)value).doubleValue());
  }
 else   if (avroType.equals(Schema.Type.BYTES)) {
    recordConsumer.addBinary(Binary.fromByteBuffer((ByteBuffer)value));
  }
 else   if (avroType.equals(Schema.Type.STRING)) {
    recordConsumer.addBinary(fromAvroString(value));
  }
 else   if (avroType.equals(Schema.Type.RECORD)) {
    writeRecord((GroupType)type,avroSchema,(GenericRecord)value);
  }
 else   if (avroType.equals(Schema.Type.ENUM)) {
    recordConsumer.addBinary(Binary.fromString(value.toString()));
  }
 else   if (avroType.equals(Schema.Type.ARRAY)) {
    writeArray((GroupType)type,avroSchema,(GenericArray<?>)value);
  }
 else   if (avroType.equals(Schema.Type.MAP)) {
    writeMap((GroupType)type,avroSchema,(Map<String,?>)value);
  }
 else   if (avroType.equals(Schema.Type.FIXED)) {
    recordConsumer.addBinary(Binary.fromByteArray(((GenericFixed)value).bytes()));
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private void writeValue(Type type,Schema avroSchema,Object value){
  Schema nonNullAvroSchema=AvroSchemaConverter.getNonNull(avroSchema);
  Schema.Type avroType=nonNullAvroSchema.getType();
  if (avroType.equals(Schema.Type.BOOLEAN)) {
    recordConsumer.addBoolean((Boolean)value);
  }
 else   if (avroType.equals(Schema.Type.INT)) {
    recordConsumer.addInteger(((Number)value).intValue());
  }
 else   if (avroType.equals(Schema.Type.LONG)) {
    recordConsumer.addLong(((Number)value).longValue());
  }
 else   if (avroType.equals(Schema.Type.FLOAT)) {
    recordConsumer.addFloat(((Number)value).floatValue());
  }
 else   if (avroType.equals(Schema.Type.DOUBLE)) {
    recordConsumer.addDouble(((Number)value).doubleValue());
  }
 else   if (avroType.equals(Schema.Type.BYTES)) {
    recordConsumer.addBinary(Binary.fromByteBuffer((ByteBuffer)value));
  }
 else   if (avroType.equals(Schema.Type.STRING)) {
    recordConsumer.addBinary(fromAvroString(value));
  }
 else   if (avroType.equals(Schema.Type.RECORD)) {
    writeRecord((GroupType)type,nonNullAvroSchema,(GenericRecord)value);
  }
 else   if (avroType.equals(Schema.Type.ENUM)) {
    recordConsumer.addBinary(Binary.fromString(value.toString()));
  }
 else   if (avroType.equals(Schema.Type.ARRAY)) {
    writeArray((GroupType)type,nonNullAvroSchema,(GenericArray<?>)value);
  }
 else   if (avroType.equals(Schema.Type.MAP)) {
    writeMap((GroupType)type,nonNullAvroSchema,(Map<String,?>)value);
  }
 else   if (avroType.equals(Schema.Type.FIXED)) {
    recordConsumer.addBinary(Binary.fromByteArray(((GenericFixed)value).bytes()));
  }
}