Extract method

This commit is contained in:
Andrey Breslav
2013-06-13 15:46:11 +04:00
committed by Alexander Udalov
parent 8d110e4a30
commit 093d664ae1
@@ -13,7 +13,7 @@ public interface AnnotationDeserializer {
public List<AnnotationDescriptor> loadClassAnnotations(
@NotNull ProtoBuf.Class classProto
) {
throw new UnsupportedOperationException("Annotations are not supported");
return notSupported();
}
@NotNull
@@ -21,7 +21,7 @@ public interface AnnotationDeserializer {
public List<AnnotationDescriptor> loadCallableAnnotations(
@NotNull ProtoBuf.Callable callableProto
) {
throw new UnsupportedOperationException("Annotations are not supported");
return notSupported();
}
@NotNull
@@ -29,6 +29,10 @@ public interface AnnotationDeserializer {
public List<AnnotationDescriptor> loadValueParameterAnnotations(
@NotNull ProtoBuf.Callable.ValueParameter parameterProto
) {
return notSupported();
}
private List<AnnotationDescriptor> notSupported() {
throw new UnsupportedOperationException("Annotations are not supported");
}
};