Bug fix - side effect : invalid Protocol(with IDE) parsing
authorjungwook.ryu <jungwook.ryu@samsung.com>
Fri, 11 Sep 2015 10:19:13 +0000 (19:19 +0900)
committerjungwook.ryu <jungwook.ryu@samsung.com>
Fri, 11 Sep 2015 10:59:12 +0000 (19:59 +0900)
Change-Id: I18476fa46a53412c0a04ba28f387c4e6e3560c0d
Signed-off-by: jungwook.ryu <jungwook.ryu@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java

index 6e4137f..de08a28 100644 (file)
@@ -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<String> localPackagePathList = new ArrayList<String>();
-               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...");