diff src/luan/LuanTable.java @ 81:9df729fa4419

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@82 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sat, 16 Feb 2013 06:58:00 +0000
parents 4bf3d0c0b6b9
children cca4f8522893
line wrap: on
line diff
--- a/src/luan/LuanTable.java	Fri Feb 15 23:59:32 2013 +0000
+++ b/src/luan/LuanTable.java	Sat Feb 16 06:58:00 2013 +0000
@@ -13,7 +13,7 @@
 import java.util.IdentityHashMap;
 
 
-public class LuanTable implements DeepCloneable<LuanTable> {
+public final class LuanTable implements DeepCloneable<LuanTable> {
 	private Map<Object,Object> map = null;
 	private List<Object> list = null;
 	private LuanTable metatable = null;
@@ -102,11 +102,14 @@
 	}
 
 	@Override public String toString() {
+		return "table: " + Integer.toHexString(hashCode());
+	}
+/*
+	@Override public String toString() {
 		return toString( Collections.newSetFromMap(new IdentityHashMap<LuanTable,Boolean>()) );
 	}
 
 	private String toString(Set<LuanTable> set) {
-//		return "table: " + Integer.toHexString(hashCode());
 		if( !set.add(this) ) {
 			return "...";
 		}
@@ -153,7 +156,7 @@
 			return Luan.toString(obj);
 		}
 	}
-
+*/
 	public Object get(Object key) {
 		if( list != null ) {
 			Integer iT = Luan.asInteger(key);