This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch SCB-1609 in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git
commit 0c1874aef9f070a77f8f0c7e38754e243d5fdca2 Author: Willem Jiang <willem.ji...@gmail.com> AuthorDate: Tue Nov 19 23:20:06 2019 +0800 SCB-1609 Fixed the SagaEnd type issue --- .../servicecomb/pack/omega/context/annotations/SagaEnd.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/annotations/SagaEnd.java b/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/annotations/SagaEnd.java index 18df029..f9ba72f 100644 --- a/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/annotations/SagaEnd.java +++ b/omega/omega-context/src/main/java/org/apache/servicecomb/pack/omega/context/annotations/SagaEnd.java @@ -16,12 +16,20 @@ */ package org.apache.servicecomb.pack.omega.context.annotations; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + /** * Indicates once the annotated method is finished, it will end a saga. * Please note: * You need to set the attribute of @SagaStart autoClose to be falseļ¼ * then you can end the Saga transaction as you want with this SagaEnd annotation. */ -public class SagaEnd { +@Retention(RUNTIME) +@Target(METHOD) +public @interface SagaEnd { }