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) {
|
private void addTypeParameterBounds(TypeParameter proto, TypeParameterDescriptorImpl descriptor) {
|
||||||
if (proto.getUpperBoundsCount() == 0) {
|
for (Type upperBound : proto.getUpperBoundsList()) {
|
||||||
descriptor.addDefaultUpperBound();
|
descriptor.addUpperBound(typeDeserializer.type(upperBound));
|
||||||
}
|
|
||||||
else {
|
|
||||||
for (Type upperBound : proto.getUpperBoundsList()) {
|
|
||||||
descriptor.addUpperBound(typeDeserializer.type(upperBound));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
descriptor.addDefaultUpperBound();
|
||||||
descriptor.setInitialized();
|
descriptor.setInitialized();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user