Better processing of upper bounds
This commit is contained in:
committed by
Alexander Udalov
parent
2a928a2bfe
commit
4c689bc328
+3
-7
@@ -246,14 +246,10 @@ public class DescriptorDeserializer {
|
||||
}
|
||||
|
||||
private void addTypeParameterBounds(TypeParameter proto, TypeParameterDescriptorImpl descriptor) {
|
||||
if (proto.getUpperBoundsCount() == 0) {
|
||||
descriptor.addDefaultUpperBound();
|
||||
}
|
||||
else {
|
||||
for (Type upperBound : proto.getUpperBoundsList()) {
|
||||
descriptor.addUpperBound(typeDeserializer.type(upperBound));
|
||||
}
|
||||
for (Type upperBound : proto.getUpperBoundsList()) {
|
||||
descriptor.addUpperBound(typeDeserializer.type(upperBound));
|
||||
}
|
||||
descriptor.addDefaultUpperBound();
|
||||
descriptor.setInitialized();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user