aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-04-30 11:15:22 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-04-30 11:15:22 +0200
commit4592b1fac0ebef1d0ee2ff650ea0c46514539dfc (patch)
treee32bdd07f766712d2bc12f6d8b7af0f0030ece85 /src/main/java/at/gv/egiz
parent296d842878e530ee819fa2f58012665b76e2e670 (diff)
downloadmoa-zs-4592b1fac0ebef1d0ee2ff650ea0c46514539dfc.tar.gz
moa-zs-4592b1fac0ebef1d0ee2ff650ea0c46514539dfc.tar.bz2
moa-zs-4592b1fac0ebef1d0ee2ff650ea0c46514539dfc.zip
Refactor: Reduce Vertical Space Bewteen Method Def. and Invoc.
Diffstat (limited to 'src/main/java/at/gv/egiz')
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsService.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsService.java b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
index f84f16c..03d99fe 100644
--- a/src/main/java/at/gv/egiz/moazs/App2MzsService.java
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
@@ -70,6 +70,19 @@ public class App2MzsService implements App2MzsPortType {
}
+ private DeliveryRequestStatusType process(DeliveryRequestType deliveryRequest) throws RuntimeException {
+
+ var appDeliveryID = deliveryRequest.getMetaData().getAppDeliveryID();
+ logger.info("Receive request with appDeliveryID = {}.", appDeliveryID);
+
+ repository.add(deliveryRequest);
+ pipeline.processRequest(appDeliveryID);
+
+ return repository.getDeliveryRequestStatus(appDeliveryID)
+ .orElseThrow(() -> new RuntimeException("Could not get a response for appDeliveryId = " + appDeliveryID));
+
+ }
+
private DeliveryRequestStatusType generatePartialSuccessResponse(String appDeliveryId) {
var answer = new DeliveryAnswerTypeBuilder()
@@ -98,17 +111,4 @@ public class App2MzsService implements App2MzsPortType {
.build();
}
- private DeliveryRequestStatusType process(DeliveryRequestType deliveryRequest) throws RuntimeException {
-
- var appDeliveryID = deliveryRequest.getMetaData().getAppDeliveryID();
- logger.info("Receive request with appDeliveryID = {}.", appDeliveryID);
-
- repository.add(deliveryRequest);
- pipeline.processRequest(appDeliveryID);
-
- return repository.getDeliveryRequestStatus(appDeliveryID)
- .orElseThrow(() -> new RuntimeException("Could not get a response for appDeliveryId = " + appDeliveryID));
-
- }
-
} \ No newline at end of file