aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/moazs/repository
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-23 11:21:24 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-23 11:21:24 +0200
commit0a316ada10bb88720dd15958168409fcb9fcf800 (patch)
tree6a3333f4961df70a9d59b609b938252aad3fdddc /src/main/java/at/gv/egiz/moazs/repository
parent7665997a90c87a400f92ae9bf1ec6cc5a3099e16 (diff)
downloadmoa-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/java/at/gv/egiz/moazs/repository')
-rw-r--r--src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java7
1 files changed, 4 insertions, 3 deletions
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