[DS-707] Inefficient use of keySet iterators

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5474 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2010-10-19 21:55:07 +00:00
parent 5d22e55b48
commit 7c716b9e9b
10 changed files with 63 additions and 97 deletions

View File

@@ -70,11 +70,10 @@ public class LicenseUtils
if (additionalInfo != null)
{
int i = 1;
for (String key : additionalInfo.keySet())
int i = 7; // Start is next index after previous args
for (Map.Entry<String, Object> info : additionalInfo.entrySet())
{
args[6 + i] = new FormattableArgument(key, additionalInfo
.get(key));
args[i] = new FormattableArgument(info.getKey(), info.getValue());
i++;
}
}