Mercurial Hosting > luan
changeset 368:2af805677fc4
fix LuanPropertyTable.asList()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 17 Apr 2015 05:16:07 -0600 |
parents | c207be7cf45d |
children | 85bf9f0379aa |
files | core/src/luan/LuanPropertyTable.java |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/src/luan/LuanPropertyTable.java Thu Apr 16 18:44:55 2015 -0600 +++ b/core/src/luan/LuanPropertyTable.java Fri Apr 17 05:16:07 2015 -0600 @@ -4,6 +4,8 @@ import java.util.Map; import java.util.AbstractMap; import java.util.Iterator; +import java.util.List; +import java.util.ArrayList; class LuanPropertyTable extends LuanTableImpl { @@ -55,4 +57,15 @@ }; } + @Override public List<Object> asList() { + List<Object> list = super.asList(); + if( list.isEmpty() ) + return list; + List<Object> rtn = new ArrayList<Object>(); + for( Object obj : list ) { + rtn.add( fixValue(obj) ); + } + return rtn; + } + }