Program: 117635
Project: 117635
Buggy source:
@SuppressWarnings("String_Node_Str") @GetMany(Item.class) public CloseableIterator<Item> getManyItem(final Map<String,Object> query,final PipelineContext context){
  final Platform platform=(Platform)query.get("String_Node_Str");
  Utilities.checkNotNull(platform,"String_Node_Str");
  final Iterable<Number> ids=(Iterable<Number>)query.get("String_Node_Str");
  final Iterable<String> names=(Iterable<String>)query.get("String_Node_Str");
  final String version=query.get("String_Node_Str") == null ? getCurrentVersion(platform,context) : (String)query.get("String_Node_Str");
  final String locale=query.get("String_Node_Str") == null ? platform.getDefaultLocale() : (String)query.get("String_Node_Str");
  final Set<String> includedData=query.get("String_Node_Str") == null ? ImmutableSet.of("String_Node_Str") : (Set<String>)query.get("String_Node_Str");
  final String content=get("String_Node_Str",version,locale);
  final ItemList data=DataObject.fromJSON(ItemList.class,new Function<JsonNode,JsonNode>(){
    private final Function<JsonNode,JsonNode> INCLUDED_DATA_PROCESSOR=new IncludedDataProcessor(Sets.union(includedData,IncludedDataProcessor.DEFAULT_ITEM_TAGS));
    @Override public JsonNode apply(    final JsonNode tree){
      if (tree == null) {
        return tree;
      }
      final JsonNode temp=tree.get("String_Node_Str");
      if (temp == null) {
        return tree;
      }
      final Iterator<String> ids=temp.fieldNames();
      while (ids.hasNext()) {
        final String itemId=ids.next();
        final ObjectNode item=(ObjectNode)temp.get(itemId);
        item.set("String_Node_Str",new IntNode(Integer.parseInt(itemId)));
        INCLUDED_DATA_PROCESSOR.apply(item);
      }
      return tree;
    }
  }
,content);
  data.setPlatform(platform.getTag());
  data.setLocale(locale);
  data.setIncludedData(includedData);
  final Map<String,Item> byName=ids == null ? new HashMap<String,Item>() : null;
  for (  final Item item : data.getData().values()) {
    item.setPlatform(platform.getTag());
    item.setVersion(data.getVersion());
    item.setLocale(locale);
    item.setIncludedData(includedData);
    if (ids == null) {
      byName.put(item.getName(),item);
    }
  }
  final Iterator<?> iterator=ids == null ? names.iterator() : ids.iterator();
  return CloseableIterators.from(new Iterator<Item>(){
    @Override public boolean hasNext(){
      return iterator.hasNext();
    }
    @Override public Item next(){
      if (ids != null) {
        final Number id=(Number)iterator.next();
        return data.getData().get(id.toString());
      }
 else {
        final String name=(String)iterator.next();
        return byName.get(name);
      }
    }
    @Override public void remove(){
      throw new UnsupportedOperationException();
    }
  }
);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @GetMany(Item.class) public CloseableIterator<Item> getManyItem(final Map<String,Object> query,final PipelineContext context){
  final Platform platform=(Platform)query.get("String_Node_Str");
  Utilities.checkNotNull(platform,"String_Node_Str");
  final Iterable<Number> ids=(Iterable<Number>)query.get("String_Node_Str");
  final Iterable<String> names=(Iterable<String>)query.get("String_Node_Str");
  final String version=query.get("String_Node_Str") == null ? getCurrentVersion(platform,context) : (String)query.get("String_Node_Str");
  final String locale=query.get("String_Node_Str") == null ? platform.getDefaultLocale() : (String)query.get("String_Node_Str");
  final Set<String> includedData=query.get("String_Node_Str") == null ? ImmutableSet.of("String_Node_Str") : (Set<String>)query.get("String_Node_Str");
  final String content=get("String_Node_Str",version,locale);
  final ItemList data=DataObject.fromJSON(ItemList.class,new Function<JsonNode,JsonNode>(){
    private final Function<JsonNode,JsonNode> INCLUDED_DATA_PROCESSOR=new IncludedDataProcessor(Sets.union(includedData,IncludedDataProcessor.DEFAULT_ITEM_TAGS));
    @Override public JsonNode apply(    final JsonNode tree){
      if (tree == null) {
        return tree;
      }
      final JsonNode temp=tree.get("String_Node_Str");
      if (temp == null) {
        return tree;
      }
      final Iterator<String> ids=temp.fieldNames();
      while (ids.hasNext()) {
        final String itemId=ids.next();
        final ObjectNode item=(ObjectNode)temp.get(itemId);
        item.set("String_Node_Str",new IntNode(Integer.parseInt(itemId)));
        INCLUDED_DATA_PROCESSOR.apply(item);
      }
      return tree;
    }
  }
,content);
  if (data == null) {
    return null;
  }
  data.setPlatform(platform.getTag());
  data.setLocale(locale);
  data.setIncludedData(includedData);
  final Map<String,Item> byName=ids == null ? new HashMap<String,Item>() : null;
  for (  final Item item : data.getData().values()) {
    item.setPlatform(platform.getTag());
    item.setVersion(data.getVersion());
    item.setLocale(locale);
    item.setIncludedData(includedData);
    if (ids == null) {
      byName.put(item.getName(),item);
    }
  }
  final Iterator<?> iterator=ids == null ? names.iterator() : ids.iterator();
  return CloseableIterators.from(new Iterator<Item>(){
    @Override public boolean hasNext(){
      return iterator.hasNext();
    }
    @Override public Item next(){
      if (ids != null) {
        final Number id=(Number)iterator.next();
        return data.getData().get(id.toString());
      }
 else {
        final String name=(String)iterator.next();
        return byName.get(name);
      }
    }
    @Override public void remove(){
      throw new UnsupportedOperationException();
    }
  }
);
}