diff --git a/Adjust/plugin/AdjustSociomantic.java b/Adjust/plugin/AdjustSociomantic.java index 1439d4163..0131a5de4 100644 --- a/Adjust/plugin/AdjustSociomantic.java +++ b/Adjust/plugin/AdjustSociomantic.java @@ -14,7 +14,7 @@ /** * AdjustSociomantic Class - * Created by Nicolas Brugneaux on 01/04/15. + * Created by Nicolas Brugneaux nicolas.brugneaux@sociomantic.com on 01/04/15. */ public abstract class AdjustSociomantic { @@ -92,7 +92,7 @@ public static void injectCustomerDataIntoEvent(AdjustEvent event, Map data = new HashMap<>(); + Map data = new HashMap(); for (Entry entry: customerData.entrySet()) { if (!customerAliases.contains(entry.getKey())) { @@ -129,7 +129,7 @@ public static void injectViewListingIntoEvent(AdjustEvent event, List ca return; } - Map co = new HashMap<>(); + Map co = new HashMap(); if (null != date) { co.put(SCMTimestamp, date); @@ -160,7 +160,7 @@ public static void injectProductIntoEvent(AdjustEvent event, String productId, M po = filter(parameters, productAliases); } else { - po = new HashMap<>(); + po = new HashMap(); } po.put(SCMProductID, productId); @@ -178,10 +178,10 @@ public static void injectCartIntoEvent(AdjustEvent event, List products) { return; } - List> po = new ArrayList<>(); + List> po = new ArrayList>(); for (Object product: products) { - Map _product = new HashMap<>(); + Map _product = new HashMap(); if (product instanceof String) { _product.put(SCMProductID, product); @@ -230,11 +230,11 @@ private static void injectTransactionIntoEvent(AdjustEvent event, String transac return; } - Map> to = new HashMap<>(1); - List> po = new ArrayList<>(); + Map> to = new HashMap>(1); + List> po = new ArrayList>(); for (Object product: products) { - Map _product = new HashMap<>(); + Map _product = new HashMap(); if (product instanceof String) { _product.put(SCMProductID, product); @@ -283,7 +283,7 @@ public static void injectLeadIntoEvent(AdjustEvent event, String leadID, Boolean return; } - Map> to = new HashMap<>(1); + Map> to = new HashMap>(1); to.put(SCMTransaction, new HashMap()); if (confirmed) { @@ -301,7 +301,7 @@ public static void injectLeadIntoEvent(AdjustEvent event, String leadID, Boolean private static Map filter(Map parameters, List aliases) { - Map filtered = new HashMap<>(); + Map filtered = new HashMap(); for(Entry entry: parameters.entrySet()) { String key = entry.getKey(); @@ -327,7 +327,7 @@ private static Map filter(Map parameters, List filterStringArray(List list) { - List filtered = new ArrayList<>(); + List filtered = new ArrayList(); for (Object item: list) { if (item instanceof String) { filtered.add((String) item);