Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Adjust/plugin/AdjustSociomantic.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/**
* AdjustSociomantic Class
* Created by Nicolas Brugneaux <[email protected]> on 01/04/15.
* Created by Nicolas Brugneaux [email protected] on 01/04/15.
*/
public abstract class AdjustSociomantic {

Expand Down Expand Up @@ -92,7 +92,7 @@ public static void injectCustomerDataIntoEvent(AdjustEvent event, Map<String, St
return;
}

Map<String, String> data = new HashMap<>();
Map<String, String> data = new HashMap<String, String>();

for (Entry<String, String> entry: customerData.entrySet()) {
if (!customerAliases.contains(entry.getKey())) {
Expand Down Expand Up @@ -129,7 +129,7 @@ public static void injectViewListingIntoEvent(AdjustEvent event, List<String> ca
return;
}

Map<String, Object> co = new HashMap<>();
Map<String, Object> co = new HashMap<String, Object>();

if (null != date) {
co.put(SCMTimestamp, date);
Expand Down Expand Up @@ -160,7 +160,7 @@ public static void injectProductIntoEvent(AdjustEvent event, String productId, M
po = filter(parameters, productAliases);
}
else {
po = new HashMap<>();
po = new HashMap<String, Object>();
}

po.put(SCMProductID, productId);
Expand All @@ -178,10 +178,10 @@ public static void injectCartIntoEvent(AdjustEvent event, List products) {
return;
}

List<Map<String, Object>> po = new ArrayList<>();
List<Map<String, Object>> po = new ArrayList<Map<String, Object>>();

for (Object product: products) {
Map<String, Object> _product = new HashMap<>();
Map<String, Object> _product = new HashMap<String, Object>();

if (product instanceof String) {
_product.put(SCMProductID, product);
Expand Down Expand Up @@ -230,11 +230,11 @@ private static void injectTransactionIntoEvent(AdjustEvent event, String transac
return;
}

Map<String, Map<String, Object>> to = new HashMap<>(1);
List<Map<String, Object>> po = new ArrayList<>();
Map<String, Map<String, Object>> to = new HashMap<String, Map<String, Object>>(1);
List<Map<String, Object>> po = new ArrayList<Map<String, Object>>();

for (Object product: products) {
Map<String, Object> _product = new HashMap<>();
Map<String, Object> _product = new HashMap<String, Object>();

if (product instanceof String) {
_product.put(SCMProductID, product);
Expand Down Expand Up @@ -283,7 +283,7 @@ public static void injectLeadIntoEvent(AdjustEvent event, String leadID, Boolean
return;
}

Map<String, Map<String, String>> to = new HashMap<>(1);
Map<String, Map<String, String>> to = new HashMap<String, Map<String, String>>(1);
to.put(SCMTransaction, new HashMap<String, String>());

if (confirmed) {
Expand All @@ -301,7 +301,7 @@ public static void injectLeadIntoEvent(AdjustEvent event, String leadID, Boolean

private static Map<String, Object> filter(Map<String, Object> parameters, List<String> aliases) {

Map<String, Object> filtered = new HashMap<>();
Map<String, Object> filtered = new HashMap<String, Object>();

for(Entry<String, Object> entry: parameters.entrySet()) {
String key = entry.getKey();
Expand All @@ -327,7 +327,7 @@ private static Map<String, Object> filter(Map<String, Object> parameters, List<S

private static List<String> filterStringArray(List list) {

List<String> filtered = new ArrayList<>();
List<String> filtered = new ArrayList<String>();
for (Object item: list) {
if (item instanceof String) {
filtered.add((String) item);
Expand Down