diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-23 11:21:24 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-23 11:21:24 +0200 |
commit | 0a316ada10bb88720dd15958168409fcb9fcf800 (patch) | |
tree | 6a3333f4961df70a9d59b609b938252aad3fdddc /src/main | |
parent | 7665997a90c87a400f92ae9bf1ec6cc5a3099e16 (diff) | |
download | moa-zs-0a316ada10bb88720dd15958168409fcb9fcf800.tar.gz moa-zs-0a316ada10bb88720dd15958168409fcb9fcf800.tar.bz2 moa-zs-0a316ada10bb88720dd15958168409fcb9fcf800.zip |
Refactor: Cleanup Codesmells
- Remove unused imports, commented code and copy-pasted code
Diffstat (limited to 'src/main')
4 files changed, 5 insertions, 9 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/mzs/MzsClient.java b/src/main/java/at/gv/egiz/moazs/mzs/MzsClient.java index 295d11a..980dce1 100644 --- a/src/main/java/at/gv/egiz/moazs/mzs/MzsClient.java +++ b/src/main/java/at/gv/egiz/moazs/mzs/MzsClient.java @@ -1,7 +1,6 @@ package at.gv.egiz.moazs.mzs; import at.gv.zustellung.app2mzs.xsd.DeliveryResponseType; -import at.gv.zustellung.msg.xsd.DeliveryRequestStatusType; import org.springframework.stereotype.Component; @Component diff --git a/src/main/java/at/gv/egiz/moazs/mzs/MzsService.java b/src/main/java/at/gv/egiz/moazs/mzs/MzsService.java index e031b0b..bb927ba 100644 --- a/src/main/java/at/gv/egiz/moazs/mzs/MzsService.java +++ b/src/main/java/at/gv/egiz/moazs/mzs/MzsService.java @@ -5,12 +5,9 @@ import at.gv.egiz.moazs.pipeline.DeliveryPipeline; import at.gv.egiz.moazs.preprocess.DeliveryRequestAugmenter; import at.gv.egiz.moazs.repository.DeliveryRepository; import at.gv.egiz.moazs.scheme.Msg2MzsConverter; -import at.gv.egiz.moazs.scheme.Mzs2MsgConverter; import at.gv.zustellung.app2mzs.xsd.App2MzsPortType; import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType; import at.gv.zustellung.app2mzs.xsd.DeliveryResponseType; -import at.gv.zustellung.app2mzs.xsd.PartialSuccessType; -import at.gv.zustellung.msg.xsd.DeliveryAnswerType; import at.gv.zustellung.msg.xsd.DeliveryRequestStatusType; import org.apache.cxf.annotations.SchemaValidation; import org.slf4j.Logger; diff --git a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java index bfd05b2..a0475fd 100644 --- a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java +++ b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java @@ -1,11 +1,10 @@ package at.gv.egiz.moazs.pipeline; -import at.gv.egiz.moazs.msg.MsgClient; import at.gv.egiz.moazs.msg.MsgClientFactory; -import at.gv.egiz.moazs.tnvz.TnvzClient; import at.gv.egiz.moazs.repository.DeliveryRepository; import at.gv.egiz.moazs.scheme.Mzs2MsgConverter; +import at.gv.egiz.moazs.tnvz.TnvzClient; import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType; import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType.Payload; import at.gv.zustellung.msg.xsd.persondata.IdentificationType; diff --git a/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java b/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java index 4ffe85d..27b780f 100644 --- a/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java +++ b/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java @@ -23,6 +23,7 @@ public class RedisDeliveryRepository implements DeliveryRepository { private static final Logger logger = LoggerFactory.getLogger(RedisDeliveryRepository.class); private static final String KEY = "MZS_DELIVERY_REQUEST"; + private static final String NOT_IMPLEMENTED_MESSAGE = "Not Implemented Yet"; private final RedisTemplate<String, Object> redisTemplate; private final Marshaller marshaller; @@ -62,17 +63,17 @@ public class RedisDeliveryRepository implements DeliveryRepository { @Override public void add(DeliveryRequestStatusType status) { - throw new UnsupportedOperationException("Not Implemented Yet"); + throw new UnsupportedOperationException(NOT_IMPLEMENTED_MESSAGE); } @Override public Optional<DeliveryRequestStatusType> getDeliveryRequestStatus(String appDeliveryID) { - throw new UnsupportedOperationException("Not Implemented Yet"); + throw new UnsupportedOperationException(NOT_IMPLEMENTED_MESSAGE); } @Override public void addSignedDeliveryRequestStatus(byte[] bytes, String appDeliveryId) { - throw new UnsupportedOperationException("Not Implemented Yet"); + throw new UnsupportedOperationException(NOT_IMPLEMENTED_MESSAGE); } @Override |