IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (Enumeration cast up)

This commit is contained in:
hieplq 2018-10-16 12:55:11 +07:00
parent 952d9f93d7
commit f4931abda5
1 changed files with 4 additions and 4 deletions

View File

@ -24,6 +24,8 @@ import java.util.Enumeration;
import java.util.Properties;
import java.util.logging.Level;
import javax.swing.tree.TreeNode;
import org.compiere.model.MAcctSchemaElement;
import org.compiere.model.MHierarchy;
import org.compiere.model.MRole;
@ -250,13 +252,11 @@ public class MReportTree
StringBuffer result = null;
if (node != null && node.isSummary ())
{
@SuppressWarnings("unchecked")
Enumeration<MTreeNode> en = (Enumeration<MTreeNode>)node.preorderEnumeration ();
Enumeration<TreeNode> en = node.preorderEnumeration ();
StringBuffer sb = new StringBuffer ();
while (en.hasMoreElements ())
{
MTreeNode nn = en.nextElement ();
MTreeNode nn = (MTreeNode)en.nextElement ();
if (!nn.isSummary ())
{
if (sb.length () > 0)