From 702eaa7777914ef009f8f6e1625d2b8f76b10f4b Mon Sep 17 00:00:00 2001 From: tianwenbo Date: Tue, 7 Mar 2023 16:23:54 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91=20TestSocketContr?= =?UTF-8?q?oller.java=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/message/websocket/TestSocketController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/message/websocket/TestSocketController.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/message/websocket/TestSocketController.java index 1a0bb8ca..95939ab5 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/message/websocket/TestSocketController.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/message/websocket/TestSocketController.java @@ -19,7 +19,7 @@ public class TestSocketController { @PostMapping("/sendAll") public Result sendAll(@RequestBody JSONObject jsonObject) { - Result result = new Result(); + Result result = new Result<>(); String message = jsonObject.getString("message"); JSONObject obj = new JSONObject(); obj.put(WebsocketConst.MSG_CMD, WebsocketConst.CMD_TOPIC); @@ -32,7 +32,7 @@ public class TestSocketController { @PostMapping("/sendUser") public Result sendUser(@RequestBody JSONObject jsonObject) { - Result result = new Result(); + Result result = new Result<>(); String userId = jsonObject.getString("userId"); String message = jsonObject.getString("message"); JSONObject obj = new JSONObject(); @@ -45,4 +45,4 @@ public class TestSocketController { return result; } -} \ No newline at end of file +}