list.addUnique(position, value);
}
}
catch (RuntimeException e)
{
xmiExceptions.add(new IllegalValueException
(object,
feature,
value,
e,
location,
reference.getLineNumber(),
reference.getColumnNumber()
));
}
}
}
}
else
{
for (int i = 0, l = values.length; i < l; i++)
{
Object value = values[i];
if (value != null)
{
try
{
int sourcePosition = list.basicIndexOf(value);
if (sourcePosition != -1)
{
list.move(positions[i], sourcePosition);
}
else
{
list.addUnique(positions[i], value);
}
}
catch (RuntimeException e)
{
xmiExceptions.add(new IllegalValueException
(object,
feature,
value,
e,
location,