summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2016-03-16 12:14:55 -0700
committer Ian Rogers <irogers@google.com> 2016-03-16 12:15:42 -0700
commita99b1559bfd777fde16d46502f8bcb2e872f9fc3 (patch)
treef85fa0eabfd0f5bf8307f1c5b03ec3182be7c9c9
parent1b4afc275fd39181d2ee2ba37733d971396ef7c0 (diff)
Fix broken StringBuilder construction.
StringBuilder doesn't have a char constructor and so passing a char calls the int constructor that presizes the StringBuilder rather than creating it containing a single character. This bug was caught by error prone. Change-Id: I809ce0fcf930688db925ac7a8e23ee85086d479e
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/ServiceMonitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ServiceMonitor.java b/packages/SystemUI/src/com/android/systemui/statusbar/ServiceMonitor.java
index 602989aacadb..db46dc64405f 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/ServiceMonitor.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/ServiceMonitor.java
@@ -272,7 +272,7 @@ public class ServiceMonitor {
private static String bundleToString(Bundle bundle) {
if (bundle == null) return null;
- StringBuilder sb = new StringBuilder('{');
+ StringBuilder sb = new StringBuilder("{");
for (String key : bundle.keySet()) {
if (sb.length() > 1) sb.append(',');
Object v = bundle.get(key);