diff --git a/compiler/frontend/serialization/src/org/jetbrains/jet/descriptors/serialization/descriptors/AnnotationDeserializer.java b/compiler/frontend/serialization/src/org/jetbrains/jet/descriptors/serialization/descriptors/AnnotationDeserializer.java index 7f803c32233..f43bff9e936 100644 --- a/compiler/frontend/serialization/src/org/jetbrains/jet/descriptors/serialization/descriptors/AnnotationDeserializer.java +++ b/compiler/frontend/serialization/src/org/jetbrains/jet/descriptors/serialization/descriptors/AnnotationDeserializer.java @@ -13,7 +13,7 @@ public interface AnnotationDeserializer { public List loadClassAnnotations( @NotNull ProtoBuf.Class classProto ) { - throw new UnsupportedOperationException("Annotations are not supported"); + return notSupported(); } @NotNull @@ -21,7 +21,7 @@ public interface AnnotationDeserializer { public List loadCallableAnnotations( @NotNull ProtoBuf.Callable callableProto ) { - throw new UnsupportedOperationException("Annotations are not supported"); + return notSupported(); } @NotNull @@ -29,6 +29,10 @@ public interface AnnotationDeserializer { public List loadValueParameterAnnotations( @NotNull ProtoBuf.Callable.ValueParameter parameterProto ) { + return notSupported(); + } + + private List notSupported() { throw new UnsupportedOperationException("Annotations are not supported"); } };