From 64997ec4d5f442cc50535221c7e671a40722af86 Mon Sep 17 00:00:00 2001 From: Gun Lee Date: Wed, 27 Sep 2017 23:36:46 +0900 Subject: [PATCH] typo --- .../src/main/java/scouter/agent/asm/JDBCStatementASM.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scouter.agent.java/src/main/java/scouter/agent/asm/JDBCStatementASM.java b/scouter.agent.java/src/main/java/scouter/agent/asm/JDBCStatementASM.java index a9c9b7be9..d721af666 100644 --- a/scouter.agent.java/src/main/java/scouter/agent/asm/JDBCStatementASM.java +++ b/scouter.agent.java/src/main/java/scouter/agent/asm/JDBCStatementASM.java @@ -82,13 +82,15 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions); if ("".equals(name)) { return new StInitMV(access, desc, mv); - }else if (StExecuteMV.isTarget(name)) { + } + + if (StExecuteMV.isTarget(name)) { if (desc.startsWith("(Ljava/lang/String;)")) { return new StExecuteMV(access, desc, mv, owner, name); } } else if ("getUpdateCount".equals(name) && "()I".equals(desc)) { return new PsUpdateCountMV(mv); - }else if ("close".equals(name) && "()V".equals(desc)) { + } else if ("close".equals(name) && "()V".equals(desc)) { return new PsCloseMV(mv); } return mv;