From 340a3a8fa34ca4df2a90079d3b6cf6b6553a8be2 Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Wed, 19 Jun 2019 16:46:12 +0800 Subject: [PATCH] --- .../test/wsdync/_DyncChatWebSocketServlet.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/test/org/redkale/test/wsdync/_DyncChatWebSocketServlet.java b/test/org/redkale/test/wsdync/_DyncChatWebSocketServlet.java index f59ecfd79..2e3a46df6 100644 --- a/test/org/redkale/test/wsdync/_DyncChatWebSocketServlet.java +++ b/test/org/redkale/test/wsdync/_DyncChatWebSocketServlet.java @@ -27,6 +27,8 @@ public final class _DyncChatWebSocketServlet extends WebSocketServlet { @Resource private ChatService _redkale_resource_0; + public static Map _redkale_annotations = new java.util.HashMap(); + public _DyncChatWebSocketServlet() { super(); this.messageTextType = _DyncChatWebSocketMessage.class; @@ -71,9 +73,6 @@ public final class _DyncChatWebSocketServlet extends WebSocketServlet { @ConvertDisabled public _DyncChatWebSocket _redkale_websocket; - @ConvertDisabled - public static Annotation[] _redkale_annotations; - @Override public String[] getNames() { return new String[]{"message", "extmap"}; @@ -88,8 +87,9 @@ public final class _DyncChatWebSocketServlet extends WebSocketServlet { @Override public Annotation[] getAnnotations() { - if (_redkale_annotations == null) return new Annotation[0]; - return Arrays.copyOf(_redkale_annotations, _redkale_annotations.length); + Annotation[] annotations = _redkale_annotations.get("org/redkale/test/wsdync/_DyncChatWebSocketServlet$_DyncChatWebSocketMessage_sendmessagee_00"); + if (annotations == null) return new Annotation[0]; + return Arrays.copyOf(annotations, annotations.length); } public void execute(_DyncChatWebSocket websocket) { @@ -115,9 +115,6 @@ public final class _DyncChatWebSocketServlet extends WebSocketServlet { @ConvertDisabled public _DyncChatWebSocket _redkale_websocket; - @ConvertDisabled - public static Annotation[] _redkale_annotations; - @Override public String[] getNames() { return new String[]{"roomid"}; @@ -131,8 +128,9 @@ public final class _DyncChatWebSocketServlet extends WebSocketServlet { @Override public Annotation[] getAnnotations() { - if (_redkale_annotations == null) return new Annotation[0]; - return Arrays.copyOf(_redkale_annotations, _redkale_annotations.length); + Annotation[] annotations = _redkale_annotations.get("org/redkale/test/wsdync/_DyncChatWebSocketServlet$_DyncChatWebSocketMessage_joinroom_01"); + if (annotations == null) return new Annotation[0]; + return Arrays.copyOf(annotations, annotations.length); } public void execute(_DyncChatWebSocket websocket) {