corrected error
authorcmzmasek <chris.zma@outlook.com>
Tue, 14 Feb 2017 20:40:32 +0000 (12:40 -0800)
committercmzmasek <chris.zma@outlook.com>
Tue, 14 Feb 2017 20:40:32 +0000 (12:40 -0800)
forester_applications/src/org/forester/applications/map_lengths.java

index 2c0e321..615ad0c 100644 (file)
@@ -35,7 +35,7 @@ import org.forester.io.parsers.FastaParser;
 import org.forester.io.parsers.phyloxml.PhyloXmlParser;
 import org.forester.phylogeny.Phylogeny;
 import org.forester.phylogeny.PhylogenyNode;
-import org.forester.phylogeny.data.PropertiesMap;
+import org.forester.phylogeny.data.PropertiesList;
 import org.forester.phylogeny.data.Property;
 import org.forester.phylogeny.data.Property.AppliesTo;
 import org.forester.phylogeny.factories.ParserBasedPhylogenyFactory;
@@ -72,9 +72,9 @@ public class map_lengths {
                     node_name = node_name.substring( 0, node_name.indexOf( "/" ) );
                     final PhylogenyNode n = phy.getNode( node_name );
                     if ( n.getNodeData().getProperties() == null ) {
-                        n.getNodeData().setProperties( new PropertiesMap() );
+                        n.getNodeData().setProperties( new PropertiesList() );
                     }
-                    final PropertiesMap properties = n.getNodeData().getProperties();
+                    final PropertiesList properties = n.getNodeData().getProperties();
                     final Property p = new Property( "r:" + i, "" + actual_length, "", "xsd:integer", AppliesTo.NODE );
                     properties.addProperty( p );
                 }