use of org.gradle.api.internal.artifacts.ImmutableVersionConstraint in project gradle by gradle.
the class ComponentSelectorSerializer method readVersionConstraint.
ImmutableVersionConstraint readVersionConstraint(Decoder decoder) throws IOException {
String prefers = decoder.readString();
int rejectCount = decoder.readSmallInt();
List<String> rejects = Lists.newArrayListWithCapacity(rejectCount);
for (int i = 0; i < rejectCount; i++) {
rejects.add(decoder.readString());
}
return new DefaultImmutableVersionConstraint(prefers, rejects);
}
Aggregations