From 6fcd95e3b069f3f8da9fc0f4e5fb68a6a81f1398 Mon Sep 17 00:00:00 2001 From: yurak Date: Wed, 15 Feb 2023 12:35:24 +0900 Subject: [PATCH] Assignment Branch Condition too high by codebeat #3049 --- .../src/main/java/webapp/tier/service/PostgresService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java b/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java index 7eed912cf..25f9d27bf 100644 --- a/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java +++ b/application/jaxrs-postgres-quarkus/src/main/java/webapp/tier/service/PostgresService.java @@ -86,7 +86,7 @@ public List selectMsg() throws SQLException { ResultSet rs = stmt.executeQuery(selectsql)) { logger.log(Level.INFO, "Select SQL: {0}", selectsql); while (rs.next()) { - MsgBean msgbean = new MsgBean(MsgUtils.stringToInt(rs.getString("id")), + MsgBean msgbean = new MsgBean(rs.getString("id"), rs.getString("msg"), "Select"); logger.log(Level.INFO, msgbean.getFullmsg()); msglist.add(msgbean);