[Title] Modified wrong usage of SyncResult 18/10918/1
authorBon-Yong Lee <bonyong.lee@samsung.com>
Tue, 15 Oct 2013 07:29:52 +0000 (16:29 +0900)
committerBon-Yong Lee <bonyong.lee@samsung.com>
Tue, 15 Oct 2013 07:29:52 +0000 (16:29 +0900)
[Desc.] from RESULT_OK to #isOK()
[Issue]

org.tizen.injector.location.core/src/org/tizen/injector/location/core/injector/LocationInjector.java [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 4c54366..7bb7522
@@ -28,7 +28,6 @@
 package org.tizen.injector.location.core.injector;
 
 import static org.tizen.common.util.IOUtil.tryClose;
-import static org.tizen.sdblib.service.SyncServiceConstants.RESULT_OK;
 
 import java.io.File;
 import java.io.FileInputStream;
@@ -132,7 +131,7 @@ public class LocationInjector implements ISelectionListener {
                        {
                                fileIn = new FileInputStream( filename.getPath() );
                                SyncResult result = sync.doPush( fileIn, device.getFileEntry(remoteFilePath), null, -1 );
-                               if (result.getCode() != RESULT_OK) {
+                               if (result.isOk()) {
                                        return false;
                                }
                        }