Applied fix from trunk for revision: 1848447

===

Fallthrough in switch-case of eway/GatewayResponse.java
(OFBIZ-10642)

There were breaks missing in the switch case.

Thanks Benjamin Jugl for providing the patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release17.12@1848448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Brohl
2018-12-08 09:41:42 +00:00
parent 3d0ade3001
commit 6fa22aa6cc
@@ -157,30 +157,40 @@ public class GatewayResponse {
switch(name) {
case "ewayTrxnError":
txTrxnError = value;
break;
case "ewayTrxnStatus":
if ("true".equals(value.toLowerCase(Locale.getDefault()).trim())) {
txTrxnStatus = true;
}
break;
case "ewayTrxnNumber":
txTrxnNumber = value;
break;
case "ewayTrxnOption1":
txTrxnOption1 = value;
break;
case "ewayTrxnOption2":
txTrxnOption2 = value;
break;
case "ewayTrxnOption3":
txTrxnOption3 = value;
break;
case "ewayReturnAmount":
if (!value.equals("")) {
txReturnAmount = Integer.parseInt(value);
}
break;
case "ewayAuthCode":
txAuthCode = value;
break;
case "ewayTrxnReference":
txTrxnReference = value;
break;
case "ewayBeagleScore":
if (!value.equals("")) {
txBeagleScore = Double.parseDouble(value);
}
break;
default:
throw new Exception("Unknown field in response: " + name);
}