comparison src/alice/jungle/persistence/PersistentJungle.java @ 88:0c98717f186e

Removed cast code
author one
date Tue, 05 Nov 2013 09:13:30 +0900
parents f142dd4abc74
children
comparison
equal deleted inserted replaced
87:f142dd4abc74 88:0c98717f186e
53 } 53 }
54 }; 54 };
55 DefaultTreeNode root = new DefaultTreeNode(); 55 DefaultTreeNode root = new DefaultTreeNode();
56 ChangeSet set = new PersistentChangeSet(root.getAsNode(),null,list,uuid,_name,0); 56 ChangeSet set = new PersistentChangeSet(root.getAsNode(),null,list,uuid,_name,0);
57 DefaultTreeContext<DefaultTreeNode> tc = new DefaultTreeContext<DefaultTreeNode>(root,set); 57 DefaultTreeContext<DefaultTreeNode> tc = new DefaultTreeContext<DefaultTreeNode>(root,set);
58 JungleTree newTree = new PersistentJungleTree<DefaultTreeNode>(_name, tc,uuid, (PersistentChangeListWriter)journal.getWriter(),editor); 58 JungleTree newTree = new PersistentJungleTree<DefaultTreeNode>(_name, tc,uuid, journal.getWriter(),editor);
59 if(trees.putIfAbsent(_name,newTree) != null){ 59 if(trees.putIfAbsent(_name,newTree) != null){
60 return null; 60 return null;
61 } 61 }
62 return newTree; 62 return newTree;
63 } 63 }