Program: 110585
Project: 110585
Buggy source:
private J2ObjcMappingFileProvider createJ2ObjcProtoCompileActions(ConfiguredTarget base,RuleContext ruleContext,Iterable<Artifact> filteredProtoSources,J2ObjcSource j2ObjcSource){
  Iterable<Artifact> outputHeaderMappingFiles=ProtoCommon.getGeneratedOutputs(ruleContext,ImmutableList.copyOf(filteredProtoSources),"String_Node_Str");
  Iterable<Artifact> outputClassMappingFiles=ProtoCommon.getGeneratedOutputs(ruleContext,ImmutableList.copyOf(filteredProtoSources),"String_Node_Str");
  ImmutableList<Artifact> outputs=ImmutableList.<Artifact>builder().addAll(j2ObjcSource.getObjcSrcs()).addAll(j2ObjcSource.getObjcHdrs()).addAll(outputHeaderMappingFiles).addAll(outputClassMappingFiles).build();
  String langPluginParameter=String.format("String_Node_Str",Joiner.on(',').join(J2OBJC_PLUGIN_PARAMS),ruleContext.getConfiguration().getGenfilesFragment().getPathString());
  SupportData supportData=base.getProvider(ProtoSupportDataProvider.class).getSupportData();
  ProtoCompileActionBuilder actionBuilder=new ProtoCompileActionBuilder(ruleContext,supportData,"String_Node_Str","String_Node_Str",outputs).setLangPluginName("String_Node_Str").setLangPluginParameter(langPluginParameter).allowServices(shouldAllowProtoServices(ruleContext));
  ruleContext.registerAction(actionBuilder.build());
  return new J2ObjcMappingFileProvider(NestedSetBuilder.<Artifact>stableOrder().addAll(outputHeaderMappingFiles).build(),NestedSetBuilder.<Artifact>stableOrder().addAll(outputClassMappingFiles).build(),NestedSetBuilder.<Artifact>stableOrder().build(),NestedSetBuilder.<Artifact>stableOrder().build());
}

Fixed version (ground truth):
private J2ObjcMappingFileProvider createJ2ObjcProtoCompileActions(ConfiguredTarget base,RuleContext ruleContext,Iterable<Artifact> filteredProtoSources,J2ObjcSource j2ObjcSource){
  Iterable<Artifact> outputHeaderMappingFiles=ProtoCommon.getGeneratedOutputs(ruleContext,ImmutableList.copyOf(filteredProtoSources),"String_Node_Str");
  Iterable<Artifact> outputClassMappingFiles=ProtoCommon.getGeneratedOutputs(ruleContext,ImmutableList.copyOf(filteredProtoSources),"String_Node_Str");
  ImmutableList<Artifact> outputs=ImmutableList.<Artifact>builder().addAll(j2ObjcSource.getObjcSrcs()).addAll(j2ObjcSource.getObjcHdrs()).addAll(outputHeaderMappingFiles).addAll(outputClassMappingFiles).build();
  String genfilesPath=getProtoOutputRoot(ruleContext).getPathString();
  String langPluginParameter=String.format("String_Node_Str",Joiner.on(',').join(J2OBJC_PLUGIN_PARAMS),genfilesPath);
  SupportData supportData=base.getProvider(ProtoSupportDataProvider.class).getSupportData();
  ProtoCompileActionBuilder actionBuilder=new ProtoCompileActionBuilder(ruleContext,supportData,"String_Node_Str","String_Node_Str",outputs).setLangPluginName("String_Node_Str").setLangPluginParameter(langPluginParameter).allowServices(shouldAllowProtoServices(ruleContext));
  ruleContext.registerAction(actionBuilder.build());
  return new J2ObjcMappingFileProvider(NestedSetBuilder.<Artifact>stableOrder().addAll(outputHeaderMappingFiles).build(),NestedSetBuilder.<Artifact>stableOrder().addAll(outputClassMappingFiles).build(),NestedSetBuilder.<Artifact>stableOrder().build(),NestedSetBuilder.<Artifact>stableOrder().build());
}