mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
[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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user