[Title] Remove trimToNull method 78/10578/1
authorchanghyun1.lee <changhyun1.lee@samsung.com>
Mon, 7 Oct 2013 07:28:12 +0000 (16:28 +0900)
committerchanghyun1.lee <changhyun1.lee@samsung.com>
Mon, 7 Oct 2013 07:28:12 +0000 (16:28 +0900)
[Desc.]
[Issue]

Change-Id: I0b2d12dc086694b8c01a17fe4248c417fc0e5ab5

org.tizen.common.sdblib/src/org/tizen/sdblib/util/StringUtil.java
org.tizen.common/src/org/tizen/common/util/StringUtil.java

index da6a385..c0cefa6 100644 (file)
@@ -97,43 +97,6 @@ public class StringUtil
     protected static char TWO_BYTES_CHARS_SHOWER = '?';
 
     /**
-     * Return meaningful value of <code>str</code>
-     * 
-     * Return <code>null</code> if <code>str</code> has no implication
-     * 
-     * @param str string to check
-     * 
-     * @return meaningful string
-     * 
-     * @see #trimToNull(String, String)
-     */
-    public static
-    String
-    trimToNull(
-        final String str
-    )
-    {
-        return trimToNull(str, null);
-    }
-
-    /**
-     * Return meaningful value of <code>str</code>
-     * 
-     * Return <code>def</code> if <code>str</code> has no implication
-     * 
-     * @param str string to check
-     * 
-     * @return meaningful string
-     * 
-     * @see #getMeaningful(String)
-     * @see #isEmpty(CharSequence)
-     */
-    public static String trimToNull(String str, String def) {
-        final String meaningful = getMeaningful( str );
-        return isEmpty( meaningful )?def:meaningful;
-    }
-
-    /**
      * Convert <code>src</code> to {@link InputStream}
      * 
      * @param src string to convert
index fea64b8..31faa13 100755 (executable)
@@ -112,43 +112,6 @@ public class StringUtil
     protected static char TWO_BYTES_CHARS_SHOWER = '?';
 
     /**
-     * Return meaningful value of <code>str</code>
-     * 
-     * Return <code>null</code> if <code>str</code> has no implication
-     * 
-     * @param str string to check
-     * 
-     * @return meaningful string
-     * 
-     * @see #trimToNull(String, String)
-     */
-    public static
-    String
-    trimToNull(
-        final String str
-    )
-    {
-        return trimToNull(str, null);
-    }
-
-    /**
-     * Return meaningful value of <code>str</code>
-     * 
-     * Return <code>def</code> if <code>str</code> has no implication
-     * 
-     * @param str string to check
-     * 
-     * @return meaningful string
-     * 
-     * @see #getMeaningful(String)
-     * @see #isEmpty(CharSequence)
-     */
-    public static String trimToNull(String str, String def) {
-        final String meaningful = getMeaningful( str );
-        return isEmpty( meaningful )?def:meaningful;
-    }
-
-    /**
      * Convert <code>src</code> to {@link InputStream}
      * 
      * @param src string to convert