Project

General

Profile

« Previous | Next » 

Revision 3149

I'm fixing a compile problem under jdk 1.4.2, where the get() method in
HashMap needs an Object as a parameter, not a primitive data type. I changed
the long to a Long as the lookup key.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
1321 1321
                  // xml_path_index table will be populated with ELEMENT paths
1322 1322
                  // with TEXT nodedata (since it's modeled this way in the DOM)
1323 1323
                  NodeRecord parentNode = 
1324
                   (NodeRecord) nodeRecordMap.get(currentNode.getParentNodeId());
1324
                   (NodeRecord) nodeRecordMap.get(new Long(currentNode.getParentNodeId()));
1325 1325
                  if ( parentNode.getNodeType().equals("ELEMENT") &&
1326 1326
                       !currentNode.getNodeData().equals("") ) {
1327 1327
                    parentNode.setNodeData(currentNode.getNodeData());
......
1392 1392
        String currentName = current.getNodeName();
1393 1393
        String nodeData = current.getNodeData();
1394 1394
        float nodeDataNumerical = current.getNodeDataNumerical();
1395
        NodeRecord leafRecord = (NodeRecord)records.get(leafNodeId);
1395
        NodeRecord leafRecord = (NodeRecord)records.get(new Long(leafNodeId));
1396 1396
        String leafData = leafRecord.getNodeData();
1397 1397
        float leafDataNumerical = leafRecord.getNodeDataNumerical();
1398 1398
        

Also available in: Unified diff