Program: 28451
Project: 28451
Buggy source:
/** 
 * Creates new instance of   {@link ProtobufUtil}
 * @param config Secor configuration instance
 * @throws RuntimeException when configuration option <code>secor.protobuf.message.class</code> is invalid.
 */
@SuppressWarnings("String_Node_Str") public ProtobufUtil(SecorConfig config){
  Map<String,String> messageClassPerTopic=config.getProtobufMessageClassPerTopic();
  messageFormatByTopic=config.getMessageFormatPerTopic();
  for (  Entry<String,String> entry : messageClassPerTopic.entrySet()) {
    String topic=entry.getKey();
    String format=entry.getValue();
    allTopics="String_Node_Str".equals(topic);
    if (allTopics) {
      messageFormatForAll=format;
      LOG.info("String_Node_Str",format);
      break;
    }
 else {
      messageFormatByTopic.putIfAbsent(topic,format);
      LOG.info("String_Node_Str",format,topic);
    }
  }
  for (  Entry<String,String> entry : messageClassPerTopic.entrySet()) {
    try {
      String topic=entry.getKey();
      Class<? extends Message> messageClass=(Class<? extends Message>)Class.forName(entry.getValue());
      Method messageParseMethod=messageClass.getDeclaredMethod("String_Node_Str",new Class<?>[]{byte[].class});
      allTopics="String_Node_Str".equals(topic);
      if (allTopics) {
        messageClassForAll=messageClass;
        messageParseMethodForAll=messageParseMethod;
        LOG.info("String_Node_Str",messageClass.getName());
      }
 else {
        messageClassByTopic.put(topic,messageClass);
        messageParseMethodByTopic.put(topic,messageParseMethod);
        LOG.info("String_Node_Str",messageClass.getName(),topic);
      }
    }
 catch (    ClassNotFoundException e) {
      LOG.error("String_Node_Str",e);
    }
catch (    NoSuchMethodException e) {
      LOG.error("String_Node_Str",e);
    }
catch (    SecurityException e) {
      LOG.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Creates new instance of   {@link ProtobufUtil}
 * @param config Secor configuration instance
 * @throws RuntimeException when configuration option <code>secor.protobuf.message.class</code> is invalid.
 */
@SuppressWarnings("String_Node_Str") public ProtobufUtil(SecorConfig config){
  Map<String,String> messageClassPerTopic=config.getProtobufMessageClassPerTopic();
  messageFormatByTopic=config.getMessageFormatPerTopic();
  for (  Entry<String,String> entry : messageFormatByTopic.entrySet()) {
    String topic=entry.getKey();
    String format=entry.getValue();
    allTopics="String_Node_Str".equals(topic);
    if (allTopics) {
      messageFormatForAll=format;
      LOG.info("String_Node_Str",format);
      break;
    }
 else {
      messageFormatByTopic.putIfAbsent(topic,format);
      LOG.info("String_Node_Str",format,topic);
    }
  }
  for (  Entry<String,String> entry : messageClassPerTopic.entrySet()) {
    try {
      String topic=entry.getKey();
      Class<? extends Message> messageClass=(Class<? extends Message>)Class.forName(entry.getValue());
      Method messageParseMethod=messageClass.getDeclaredMethod("String_Node_Str",new Class<?>[]{byte[].class});
      allTopics="String_Node_Str".equals(topic);
      if (allTopics) {
        messageClassForAll=messageClass;
        messageParseMethodForAll=messageParseMethod;
        LOG.info("String_Node_Str",messageClass.getName());
      }
 else {
        messageClassByTopic.put(topic,messageClass);
        messageParseMethodByTopic.put(topic,messageParseMethod);
        LOG.info("String_Node_Str",messageClass.getName(),topic);
      }
    }
 catch (    ClassNotFoundException e) {
      LOG.error("String_Node_Str",e);
    }
catch (    NoSuchMethodException e) {
      LOG.error("String_Node_Str",e);
    }
catch (    SecurityException e) {
      LOG.error("String_Node_Str",e);
    }
  }
}