[Title] Added some fixes by sonar
authorkh5325.kim <kh5325.kim@samsung.com>
Thu, 29 Nov 2012 08:38:54 +0000 (17:38 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Thu, 29 Nov 2012 08:41:48 +0000 (17:41 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.common.connection/src/org/tizen/common/connection/debugtools/ToolsInstall.java
org.tizen.common/src/org/tizen/common/file/EclipseFileHandler.java
org.tizen.common/src/org/tizen/common/file/VirtualFileHandler.java
org.tizen.common/src/org/tizen/common/rds/RdsDeltaDetector.java
org.tizen.common/src/org/tizen/common/rds/ui/preference/PropertyAndPreferencePage.java
org.tizen.common/src/org/tizen/common/ui/view/console/ConsoleProcessClosure.java
org.tizen.common/src/org/tizen/common/util/IOUtil.java

index 6a0bff6..fbac890 100755 (executable)
@@ -300,6 +300,7 @@ class InstallProgress implements IRunnableWithProgress {
                 }
             }
         } catch (IOException e1) {
+            Logger.log(e1);
         } finally {
             IOUtil.tryClose(br);
             if ( sdbShell != null ) {
index 0b2ca71..49c876b 100755 (executable)
@@ -187,6 +187,7 @@ extends StandardFileHandler
                        CoreException e
                )
                {
+                       logger.warn( "Exception :{}", e );
                }
                return null;
 
index 3fa265e..b3faa2b 100755 (executable)
@@ -711,6 +711,7 @@ extends AbstractFileHandler
                        file = getFile( path );
                } catch ( Throwable e )
                {
+                       logger.warn( "Exception :{}", e );
                }
                if ( Attribute.TYPE.equals( name ) )
                {
@@ -779,6 +780,7 @@ extends AbstractFileHandler
                        file = getFile( path );
                } catch ( Throwable e )
                {
+                       logger.warn( "Exception :{}", e );
                }
                if ( null != file )
                {
index c890904..e53f274 100644 (file)
@@ -47,6 +47,7 @@ import org.eclipse.core.internal.watson.ElementTreeWriter;
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.runtime.IPath;
 import org.tizen.common.util.IOUtil;
+import org.tizen.common.util.log.Logger;
 import org.tizen.sdblib.IDevice;
 import org.tizen.sdblib.SyncService;
 
@@ -88,6 +89,7 @@ public class RdsDeltaDetector {
             input = new DataInputStream(new SafeFileInputStream(strLocalFile, strLocalFile + ".temp", TREE_BUFFER_SIZE));
             oldTree = treeReader.readTree(input);
         } catch (IOException e) {
+            Logger.log(e);
         } finally {
             IOUtil.tryClose(input);
         }
index f72cdbe..c9ad8a3 100644 (file)
@@ -37,6 +37,7 @@ import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPreferencePage;
 import org.eclipse.ui.IWorkbenchPropertyPage;
 import org.eclipse.ui.dialogs.PreferencesUtil;
+import org.tizen.common.util.log.Logger;
 
 //import org.eclipse.jdt.core.IJavaProject;
 //import org.eclipse.jdt.core.JavaCore;
@@ -215,7 +216,7 @@ public abstract class PropertyAndPreferencePage extends PreferencePage implement
                     }
                 }
             } catch (Exception e) {
-                // ignore
+                Logger.log(e);
             }
             ProjectSelectionDialog dialog= new ProjectSelectionDialog(getShell(), projectsWithSpecifics);
             if (dialog.open() == Window.OK) {
index c82224d..c373aa5 100644 (file)
@@ -85,7 +85,7 @@ public class ConsoleProcessClosure {
                                                fConsole.print(lineSeparator,SWT.NORMAL,AnsicodeAdapter.BLACK);
                                        }
                                } catch (IOException x) {
-                                       // ignore
+                                       x.printStackTrace();
                                } finally {
                                        tryClose( fInputStream );
                                }
@@ -177,7 +177,7 @@ public class ConsoleProcessClosure {
                                fProcess.exitValue();
                                finished = true;
                        } catch (IllegalThreadStateException e) {
-                               //System.err.println("Closure exception " +e);
+                               e.printStackTrace();
                        }
                }
 
index 9fbd2e0..32660b1 100644 (file)
@@ -87,6 +87,7 @@ public class IOUtil {
                        }
                        catch ( final IOException e )
                        {
+                               e.printStackTrace();
                        }
                }
        }
@@ -115,6 +116,7 @@ public class IOUtil {
                        }
                        catch ( final IOException e )
                        {
+                               e.printStackTrace();
                        }
                }