Skip to content

Commit

Permalink
fix build error in DefaultTreeModel.java (refs #26)
Browse files Browse the repository at this point in the history
symbol  : constructor DefaultTreeModel(org.apache.tapestry5.ValueEncoder<T>,com.howardlewisship.tapx.core.tree.TreeModelAdapter<T>,java.util.List<java.lang.Object>)
location: class com.howardlewisship.tapx.core.tree.DefaultTreeModel<T>
        this(encoder, adapter, CollectionFactory.newList(root));
                ^
  • Loading branch information
jochenberger committed Apr 7, 2011
1 parent eea1c9b commit b9c33f2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -14,6 +14,7 @@

package com.howardlewisship.tapx.core.tree;

import java.util.Collections;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
Expand Down Expand Up @@ -105,10 +106,9 @@ public String getLabel()
* @param adapter
* @param root
*/
@SuppressWarnings("unchecked")
public DefaultTreeModel(ValueEncoder<T> encoder, TreeModelAdapter<T> adapter, T root)
{
this(encoder, adapter, CollectionFactory.newList(root));
this(encoder, adapter, Collections.singletonList(root));
}

/**
Expand Down

0 comments on commit b9c33f2

Please sign in to comment.