[Title] Code enhancement as static analysis
authorBon-Yong Lee <bonyong.lee@samsung.com>
Tue, 28 Aug 2012 02:43:30 +0000 (11:43 +0900)
committerBon-Yong Lee <bonyong.lee@samsung.com>
Tue, 28 Aug 2012 02:43:30 +0000 (11:43 +0900)
[Type]      Enhancement
[Module]    Sub
[Priority]  Minor
[CQ#]       // CQ Issue Number
[Redmine#]  // Redmine Isuue Number
[Problem]   // Problem Description
[Cause]     // Cause Description
[Solution]  // Solution Description
[TestCase]  // Executed the test-target (How to)

org.tizen.common/src/org/tizen/common/util/CollectionUtil.java
org.tizen.common/test/src/org/tizen/common/util/CollectionUtilTest.java

index 4077279..9150921 100755 (executable)
@@ -869,10 +869,7 @@ public class CollectionUtil
                {
                        return (String) obj;
                }
-               else if ( obj instanceof Object[] )
-               {
-                       return toString( ( Object[] ) obj );
-               } else if ( obj.getClass().isArray() )
+               else if ( obj.getClass().isArray() )
                {
                    int length = Array.getLength( obj );
                    
index e991acf..d548d29 100755 (executable)
@@ -705,6 +705,7 @@ CollectionUtilTest
         assertEquals( "{}", result );
         
         assertEquals( "{true, false}", CollectionUtil.toString( new boolean[] { true, false } ) );
+        assertEquals( "{a, b}", CollectionUtil.toString( new Object[] { "a", "b" } ) );
     }
 
     /**