size = parser.getValueAsInt();
} else if (fieldName.equals("locations")) {
locations = new HashSet<ArtifactLocation>();
assert (parser.getCurrentToken() == JsonToken.START_ARRAY);
while (parser.nextToken() != JsonToken.END_ARRAY) {
locations.add(new ArtifactLocation(parser.getValueAsString()));
}
} else if (fieldName.equals("attributes")) {
attributes = new HashSet<ArtifactAttribute>();
assert (parser.getCurrentToken() == JsonToken.START_ARRAY);
while (parser.nextToken() != JsonToken.END_ARRAY) {