Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a99b1559 authored by Ian Rogers's avatar Ian Rogers
Browse files

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
parent 1b4afc27
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);