|
From: <lh...@us...> - 2008-07-02 12:32:15
|
Revision: 80
http://tinytim.svn.sourceforge.net/tinytim/?rev=80&view=rev
Author: lheuer
Date: 2008-07-02 05:32:12 -0700 (Wed, 02 Jul 2008)
Log Message:
-----------
Small optimisation, using Integer.valueOf instead of new Integer
Modified Paths:
--------------
tinytim-cxtm/trunk/src/main/java/org/tinytim/cxtm/Canonicalizer.java
Modified: tinytim-cxtm/trunk/src/main/java/org/tinytim/cxtm/Canonicalizer.java
===================================================================
--- tinytim-cxtm/trunk/src/main/java/org/tinytim/cxtm/Canonicalizer.java 2008-07-01 17:05:16 UTC (rev 79)
+++ tinytim-cxtm/trunk/src/main/java/org/tinytim/cxtm/Canonicalizer.java 2008-07-02 12:32:12 UTC (rev 80)
@@ -85,7 +85,8 @@
* <p>
* The canonicalizer IS NOT a generic TMAPI-compatible implementation. It
* requires tinyTiM. The canonicalizer requires that the property
- * {@link org.tinytim.Property#INHERIT_NAME_SCOPE} is enabled
+ * {@link org.tinytim.Property#XTM10_REIFICATION} is set to <tt>false</tt> and
+ * that the property {@link org.tinytim.Property#INHERIT_NAME_SCOPE} is enabled
* (set to <tt>true</tt>).
* </p>
* @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a>
@@ -286,19 +287,19 @@
Topic topic = null;
for (int i=0; i < topics.length; i++) {
topic = topics[i];
- _construct2Id.put(topic, new Integer(i+1));
+ _construct2Id.put(topic, Integer.valueOf(i+1));
}
Arrays.sort(assocs, _assocComparator);
Association assoc = null;
for (int i=0; i < assocs.length; i++) {
assoc = assocs[i];
- _construct2Id.put(assoc, new Integer(i+1));
+ _construct2Id.put(assoc, Integer.valueOf(i+1));
Set<AssociationRole> roles_ = assoc.getAssociationRoles();
AssociationRole[] roles = roles_.toArray(new AssociationRole[roles_.size()]);
Arrays.sort(roles, _roleComparator);
_assoc2Roles.put(assoc, roles);
for (int j=0; j < roles.length; j++) {
- _construct2Id.put(roles[j], new Integer(j+1));
+ _construct2Id.put(roles[j], Integer.valueOf(j+1));
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|