From: Xuan B. <med...@us...> - 2008-01-23 20:35:19
|
Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/basic In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3394/src/org/tm4j/topicmap/tmdm/basic Modified Files: BasicTopic.java Log Message: Do not assume that BasicTopic.occurrences!=null. We allow BasicTopic.occurrences==null (meaning an empty set) for (memory and CPU) performance reasons: Do it properly. Index: BasicTopic.java =================================================================== RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/basic/BasicTopic.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** BasicTopic.java 23 Jan 2008 20:34:15 -0000 1.5 --- BasicTopic.java 23 Jan 2008 20:35:23 -0000 1.6 *************** *** 187,192 **** BasicOccurrence occurrence = new BasicOccurrence(this,type,datatype,value,scope); ! if (topicNames==null) { ! topicNames = createSet(); } --- 187,192 ---- BasicOccurrence occurrence = new BasicOccurrence(this,type,datatype,value,scope); ! if (occurrences==null) { ! occurrences = createSet(); } |