Author: mbrohl
Date: Sat Dec 16 16:00:29 2017
New Revision: 1818430
URL:
http://svn.apache.org/viewvc?rev=1818430&view=revLog:
Improved: General refactoring and code improvements, package
org.apache.ofbiz.order.thirdparty.paypal.
(OFBIZ-10064)
Thanks Julian Leichert for reporting and providing the patch.
Modified:
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/paypal/ExpressCheckoutEvents.java
Modified: ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/paypal/ExpressCheckoutEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/paypal/ExpressCheckoutEvents.java?rev=1818430&r1=1818429&r2=1818430&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/paypal/ExpressCheckoutEvents.java (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/thirdparty/paypal/ExpressCheckoutEvents.java Sat Dec 16 16:00:29 2017
@@ -125,7 +125,7 @@ public class ExpressCheckoutEvents {
LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher");
CheckoutType checkoutType = determineCheckoutType(request);
if (checkoutType.equals(CheckoutType.STANDARD)) {
- Map<String, Object> inMap = new HashMap<String, Object>();
+ Map<String, Object> inMap = new HashMap<>();
inMap.put("request", request);
inMap.put("response", response);
try {
@@ -177,7 +177,7 @@ public class ExpressCheckoutEvents {
} else if (checkoutType.equals(CheckoutType.STANDARD)) {
serviceName = "payPalDoExpressCheckout";
}
- Map<String, Object> inMap = new HashMap<String, Object>();
+ Map<String, Object> inMap = new HashMap<>();
inMap.put("userLogin", userLogin);
inMap.put("orderPaymentPreference", paymentPref);
Map<String, Object> result = null;