[Title] fix potential bug as sonar report
authorBon-Yong Lee <bonyong.lee@samsung.com>
Thu, 20 Dec 2012 00:57:54 +0000 (09:57 +0900)
committerBon-Yong Lee <bonyong.lee@samsung.com>
Thu, 20 Dec 2012 01:03:20 +0000 (10:03 +0900)
[Desc.]
[Issue]

org.tizen.common/src/org/tizen/common/core/command/sdb/PushSdbCommand.java [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e8db4b6..f5cfc8b
@@ -66,22 +66,17 @@ extends SdbDevicesHandlingCommand
         IDevice device = getDevice();
         Assert.notNull( device );
 
-        try
-        {
-            SyncService service = getSyncService();
-            SyncResult syncSuccess = 
-                    service.pushFile( localPath, remotePath, getProgressMonitor() );
-            String name = FilenameUtil.getFilename( localPath );
-            if ( syncSuccess.getCode() != SyncService.RESULT_OK ) {
-                setResult( "Failed" );
-                context.getPrompter().notify( "'" + name + "' file transfer failed." );
-                return ;
-            }
-            setResult( "Success" );
-            context.getPrompter().notify( "'" + name + "' file transfer successful." );
-        } catch (Exception e) {
-            throw new IllegalStateException( e );
+        SyncService service = getSyncService();
+        SyncResult syncSuccess = 
+        service.pushFile( localPath, remotePath, getProgressMonitor() );
+        String name = FilenameUtil.getFilename( localPath );
+        if ( syncSuccess.getCode() != SyncService.RESULT_OK ) {
+            setResult( "Failed" );
+            context.getPrompter().notify( "'" + name + "' file transfer failed." );
+            return ;
         }
+        setResult( "Success" );
+        context.getPrompter().notify( "'" + name + "' file transfer successful." );
     }
 
     @Override