Skip to content

Commit

Permalink
Change string format in plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
nonelse committed Jan 31, 2018
1 parent bfd1022 commit 5b354c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Adjust/plugin/Criteo/com/adjust/sdk/plugin/AdjustCriteo.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private static String createCriteoVLFromProducts(List<String> productIds) {
}
for (int i = 0; i < productIdsSize; ) {
String productID = productIds.get(i);
String productString = Util.formatString("\"%s\"", productID);
String productString = String.format(Locale.US, "\"%s\"", productID);
criteoVLValue.append(productString);

i++;
Expand Down Expand Up @@ -210,7 +210,7 @@ private static String createCriteoVBFromProducts(List<CriteoProduct> products) {
int productsSize = products.size();
for (int i = 0; i < productsSize; ) {
CriteoProduct criteoProduct = products.get(i);
String productString = Util.formatString("{\"i\":\"%s\",\"pr\":%f,\"q\":%d}",
String productString = String.format(Locale.US, "{\"i\":\"%s\",\"pr\":%f,\"q\":%d}",
criteoProduct.productID,
criteoProduct.price,
criteoProduct.quantity);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static String stringifyItemIds(List<String> itemIds) {

while (i < itemsSize) {
String itemId = itemIds.get(i);
String itemString = Util.formatString("\"%s\"", itemId);
String itemString = String.format(Locale.US, "\"%s\"", itemId);
tmViewList.append(itemString);

i++;
Expand Down Expand Up @@ -84,7 +84,7 @@ private static String stringifyItems(List<TrademobItem> items) {

for (int i = 0; i < itemsSize; ) {
TrademobItem item = items.get(i);
String itemString = Util.formatString("{\"id\":\"%s\",\"price\":%f,\"quantity\":%d}",
String itemString = String.format(Locale.US, "{\"id\":\"%s\",\"price\":%f,\"quantity\":%d}",
item.itemId,
item.price,
item.quantity);
Expand Down

0 comments on commit 5b354c1

Please sign in to comment.