From 093d664ae1de395c14dc56b43fe864f31a37e87f Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Thu, 13 Jun 2013 15:46:11 +0400 Subject: [PATCH] Extract method --- .../serialization/descriptors/AnnotationDeserializer.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"); } };