package com.xamoom.android.xamoomsdk.Utils;

import java.util.List;

/**
 * ListUtil to join lists of string.
 * (Because TextUtil gets mocked in tests)
 */
public class ListUtil {
  /**
   * Will return joined list with seperator.
   *
   * @param list List of Strings.
   * @param seperator String to seperate them.
   * @return Joined list.
   */
  public static String joinStringList(List<String> list, String seperator) {
    if (list == null || seperator == null) {
      return "";
    }

    StringBuilder sb = new StringBuilder();
    int counter = 0;
    for (String item : list) {
      counter++;
      sb.append(item);
      if (counter != list.size()) {
        sb.append(seperator);
      }
    }
    return sb.toString();
  }
}

@@ -533,16 +533,36 @@
 lder();%0A
+    sb.append(%22%5B%22);%0A
     int 
@@ -574,16 +574,16 @@
 er = 0;%0A
-
     for 
@@ -622,16 +622,38 @@
 nter++;%0A
+      sb.append(%22'%22);%0A
       sb
@@ -667,16 +667,38 @@
 (item);%0A
+      sb.append(%22'%22);%0A
       if
@@ -763,22 +763,42 @@
       %7D%0A
-
     %7D%0A
+    sb.append(%22%5D%22);%0A
     retu

Fix for problem with tags