Program: 80183
Project: 80183
Buggy source:
/** 
 * Primary class for loading Cassandra configuration from the 'MAPPING_FILE'.
 * @throws JDOMException
 * @throws IOException
 */
@SuppressWarnings("String_Node_Str") public void loadConfiguration() throws JDOMException, IOException {
  SAXBuilder saxBuilder=new SAXBuilder();
  InputStream inputStream=getClass().getClassLoader().getResourceAsStream(MAPPING_FILE);
  if (inputStream == null) {
    LOG.warn("String_Node_Str" + MAPPING_FILE + "String_Node_Str");
    throw new IOException("String_Node_Str" + MAPPING_FILE + "String_Node_Str");
  }
  Document document=saxBuilder.build(inputStream);
  if (document == null) {
    LOG.warn("String_Node_Str" + MAPPING_FILE + "String_Node_Str");
  }
  Element root=document.getRootElement();
  List<Element> keyspaces=root.getChildren(KEYSPACE_ELEMENT);
  if (keyspaces == null || keyspaces.size() == 0) {
    LOG.error("String_Node_Str");
  }
 else {
    for (    Element keyspace : keyspaces) {
      String keyspaceName=keyspace.getAttributeValue(NAME_ATTRIBUTE);
      String clusterName=keyspace.getAttributeValue(CLUSTER_ATTRIBUTE);
      String hostName=keyspace.getAttributeValue(HOST_ATTRIBUTE);
      if (LOG.isDebugEnabled()) {
        LOG.debug("String_Node_Str" + keyspaceName + "String_Node_Str"+ clusterName+ "String_Node_Str"+ hostName+ "String_Node_Str");
      }
      if (keyspaceName == null) {
        LOG.error("String_Node_Str");
        continue;
      }
      keyspaceMap.put(keyspaceName,keyspace);
    }
  }
  List<Element> mappings=root.getChildren(MAPPING_ELEMENT);
  if (mappings == null || mappings.size() == 0) {
    LOG.error("String_Node_Str");
  }
 else {
    for (    Element mapping : mappings) {
      String className=mapping.getAttributeValue(NAME_ATTRIBUTE);
      String keyClassName=mapping.getAttributeValue(KEYCLASS_ATTRIBUTE);
      String keyspaceName=mapping.getAttributeValue(KEYSPACE_ELEMENT);
      if (LOG.isDebugEnabled()) {
        LOG.debug("String_Node_Str" + keyClassName + "String_Node_Str"+ className+ "String_Node_Str"+ keyspaceName+ "String_Node_Str");
      }
      if (className == null) {
        LOG.error("String_Node_Str");
        continue;
      }
      mappingMap.put(className,mapping);
    }
  }
}

Fixed version (ground truth):
/** 
 * Primary class for loading Cassandra configuration from the 'MAPPING_FILE'.
 * @throws JDOMException
 * @throws IOException
 */
@SuppressWarnings("String_Node_Str") public void loadConfiguration() throws JDOMException, IOException {
  SAXBuilder saxBuilder=new SAXBuilder();
  InputStream inputStream=getClass().getClassLoader().getResourceAsStream(MAPPING_FILE);
  if (inputStream == null) {
    LOG.warn("String_Node_Str" + MAPPING_FILE + "String_Node_Str");
    throw new IOException("String_Node_Str" + MAPPING_FILE + "String_Node_Str");
  }
  Document document=saxBuilder.build(inputStream);
  if (document == null) {
    LOG.warn("String_Node_Str" + MAPPING_FILE + "String_Node_Str");
    throw new IOException("String_Node_Str" + MAPPING_FILE + "String_Node_Str");
  }
  Element root=document.getRootElement();
  List<Element> keyspaces=root.getChildren(KEYSPACE_ELEMENT);
  if (keyspaces == null || keyspaces.size() == 0) {
    LOG.error("String_Node_Str");
  }
 else {
    for (    Element keyspace : keyspaces) {
      String keyspaceName=keyspace.getAttributeValue(NAME_ATTRIBUTE);
      String clusterName=keyspace.getAttributeValue(CLUSTER_ATTRIBUTE);
      String hostName=keyspace.getAttributeValue(HOST_ATTRIBUTE);
      if (LOG.isDebugEnabled()) {
        LOG.debug("String_Node_Str" + keyspaceName + "String_Node_Str"+ clusterName+ "String_Node_Str"+ hostName+ "String_Node_Str");
      }
      if (keyspaceName == null) {
        LOG.error("String_Node_Str");
        continue;
      }
      keyspaceMap.put(keyspaceName,keyspace);
    }
  }
  List<Element> mappings=root.getChildren(MAPPING_ELEMENT);
  if (mappings == null || mappings.size() == 0) {
    LOG.error("String_Node_Str");
  }
 else {
    for (    Element mapping : mappings) {
      String className=mapping.getAttributeValue(NAME_ATTRIBUTE);
      String keyClassName=mapping.getAttributeValue(KEYCLASS_ATTRIBUTE);
      String keyspaceName=mapping.getAttributeValue(KEYSPACE_ELEMENT);
      if (LOG.isDebugEnabled()) {
        LOG.debug("String_Node_Str" + keyClassName + "String_Node_Str"+ className+ "String_Node_Str"+ keyspaceName+ "String_Node_Str");
      }
      if (className == null) {
        LOG.error("String_Node_Str");
        continue;
      }
      mappingMap.put(className,mapping);
    }
  }
}