From: jungwook.ryu Date: Fri, 11 Sep 2015 10:19:13 +0000 (+0900) Subject: Bug fix - side effect : invalid Protocol(with IDE) parsing X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50c3b35fc2d549dcff888e5aa14eba44134de6d7;p=sdk%2Ftools%2Fdynamic-analyzer.git Bug fix - side effect : invalid Protocol(with IDE) parsing Change-Id: I18476fa46a53412c0a04ba28f387c4e6e3560c0d Signed-off-by: jungwook.ryu --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java index 6e4137f..de08a28 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java @@ -367,18 +367,17 @@ public class IDECommunicator implements Runnable { final String binaryOfTarget = new String(strMsg[MSG_INDEX_BINARY_OF_TARGET].trim()); final String executablePath = new String(strMsg[MSG_INDEX_EXECUTABLE_PATH].trim()); List localPackagePathList = new ArrayList(); - int msg_index_interactive = MSG_INDEX_LOCAL_PACKAGE_PATH; - for (int i = MSG_INDEX_LOCAL_PACKAGE_PATH; i < strMsg.length; i++) { - msg_index_interactive = i; - if (AnalyzerUtil.isInteger(strMsg[i].trim())) { + int msgIndex = MSG_INDEX_LOCAL_PACKAGE_PATH; + for (; msgIndex < strMsg.length; msgIndex++) { + if (AnalyzerUtil.isInteger(strMsg[msgIndex].trim())) { break; } - localPackagePathList.add(new String(strMsg[i].trim())); + localPackagePathList.add(new String(strMsg[msgIndex].trim())); } /* * make interactiveInfo, FunctionBodyInstrument */ - parseCheckpoints(strMsg, ++msg_index_interactive); + parseCheckpoints(strMsg, msgIndex); if (isOpenWelcomeDlg()) { Logger.debug("Start -AutoRun Waiting...");