From: Xuan B. <med...@us...> - 2007-05-21 17:59:32
|
Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/utils In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7472/src/org/tm4j/topicmap/utils Modified Files: XTMWriter.java Log Message: Little comment. Index: XTMWriter.java =================================================================== RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/utils/XTMWriter.java,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** XTMWriter.java 21 May 2007 17:16:17 -0000 1.47 --- XTMWriter.java 21 May 2007 17:59:01 -0000 1.48 *************** *** 945,949 **** if (m_exportResourceIDs) { Collection tmSrcLocs = tmo.getTopicMap().getSourceLocators(); ! if ((m_resourceIDBase == null) && (!tmSrcLocs.isEmpty())) { m_resourceIDBase = (Locator) tmSrcLocs.iterator().next(); } --- 945,949 ---- if (m_exportResourceIDs) { Collection tmSrcLocs = tmo.getTopicMap().getSourceLocators(); ! if ((m_resourceIDBase == null) && (!tmSrcLocs.isEmpty())) { // If we have no resourceIDBase, then we choose one. IDs from this resourceIDBase can be used straightly. IDs from other resourceIDBases may not be used (because they may collide with IDs from this resourceIDBase) m_resourceIDBase = (Locator) tmSrcLocs.iterator().next(); } *************** *** 970,973 **** --- 970,976 ---- /* * $Log$ + * Revision 1.48 2007/05/21 17:59:01 mediumnet + * Little comment. + * * Revision 1.47 2007/05/21 17:16:17 mediumnet * Rework and optimize getResourceID() to be only of O(n) performance instead of O(n^2) performance. |