aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/libs/ddmuilib
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-09-21 15:11:38 -0700
committerSiva Velusamy <vsiva@google.com>2011-09-22 11:37:19 -0700
commit45f50a382e46972d0e4830d27bc12077f5fbb393 (patch)
treee63f2b2a4d7884b27cfbdf4ab1e0da84c117e956 /ddms/libs/ddmuilib
parent396b5ed9a1fa5ba1b9fbc4f91780e143397cc036 (diff)
downloadsdk-45f50a382e46972d0e4830d27bc12077f5fbb393.zip
sdk-45f50a382e46972d0e4830d27bc12077f5fbb393.tar.gz
sdk-45f50a382e46972d0e4830d27bc12077f5fbb393.tar.bz2
Findbugs fix: Use Character.toString()
Change-Id: I7a50c09b3cc7028caef2302154bfe6fea8bef556
Diffstat (limited to 'ddms/libs/ddmuilib')
-rw-r--r--ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatFilterSettingsSerializer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatFilterSettingsSerializer.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatFilterSettingsSerializer.java
index 56008c2..12fbdfa 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatFilterSettingsSerializer.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatFilterSettingsSerializer.java
@@ -157,7 +157,7 @@ public final class LogCatFilterSettingsSerializer {
* Enclose a string in quotes, escaping all the quotes within the string.
*/
private String quoteString(String s) {
- return SINGLE_QUOTE + s.replace(new Character(SINGLE_QUOTE).toString(), "\\'")
+ return SINGLE_QUOTE + s.replace(Character.toString(SINGLE_QUOTE), "\\'")
+ SINGLE_QUOTE;
}
@@ -167,7 +167,7 @@ public final class LogCatFilterSettingsSerializer {
*/
private String unquoteString(String s) {
s = s.substring(1, s.length() - 1); /* remove start and end QUOTES */
- return s.replace("\\'", new Character(SINGLE_QUOTE).toString());
+ return s.replace("\\'", Character.toString(SINGLE_QUOTE));
}
private String getKeyword(String pref) {