Extract method
This commit is contained in:
committed by
Alexander Udalov
parent
8d110e4a30
commit
093d664ae1
+6
-2
@@ -13,7 +13,7 @@ public interface AnnotationDeserializer {
|
|||||||
public List<AnnotationDescriptor> loadClassAnnotations(
|
public List<AnnotationDescriptor> loadClassAnnotations(
|
||||||
@NotNull ProtoBuf.Class classProto
|
@NotNull ProtoBuf.Class classProto
|
||||||
) {
|
) {
|
||||||
throw new UnsupportedOperationException("Annotations are not supported");
|
return notSupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@@ -21,7 +21,7 @@ public interface AnnotationDeserializer {
|
|||||||
public List<AnnotationDescriptor> loadCallableAnnotations(
|
public List<AnnotationDescriptor> loadCallableAnnotations(
|
||||||
@NotNull ProtoBuf.Callable callableProto
|
@NotNull ProtoBuf.Callable callableProto
|
||||||
) {
|
) {
|
||||||
throw new UnsupportedOperationException("Annotations are not supported");
|
return notSupported();
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@@ -29,6 +29,10 @@ public interface AnnotationDeserializer {
|
|||||||
public List<AnnotationDescriptor> loadValueParameterAnnotations(
|
public List<AnnotationDescriptor> loadValueParameterAnnotations(
|
||||||
@NotNull ProtoBuf.Callable.ValueParameter parameterProto
|
@NotNull ProtoBuf.Callable.ValueParameter parameterProto
|
||||||
) {
|
) {
|
||||||
|
return notSupported();
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<AnnotationDescriptor> notSupported() {
|
||||||
throw new UnsupportedOperationException("Annotations are not supported");
|
throw new UnsupportedOperationException("Annotations are not supported");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user