aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java10
1 files changed, 5 insertions, 5 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 c514210..c24902d 100644
--- a/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java
+++ b/src/main/java/at/gv/egiz/moazs/repository/RedisDeliveryRepository.java
@@ -30,12 +30,12 @@ public class RedisDeliveryRepository implements DeliveryRepository {
private final ObjectFactory factory = new ObjectFactory();
@Autowired
- public RedisDeliveryRepository(RedisTemplate<String, Object> redisTemplate, Marshaller marshaller){
+ public RedisDeliveryRepository(RedisTemplate<String, Object> redisTemplate, Marshaller mzsMarshaller){
logger.info("RedisDeliveryRepository()");
this.redisTemplate = redisTemplate;
this.hashOperations = redisTemplate.opsForHash();
- this.marshaller = marshaller;
+ this.marshaller = mzsMarshaller;
}
@Override
@@ -49,7 +49,7 @@ public class RedisDeliveryRepository implements DeliveryRepository {
@Override
public Optional<DeliveryRequestType> getDeliveryRequest(String appDeliveryID) {
- var serializedRequest = (String) hashOperations.get(KEY, appDeliveryID);
+ var serializedRequest = hashOperations.get(KEY, appDeliveryID);
if (serializedRequest == null) {
return Optional.empty();
@@ -62,11 +62,11 @@ public class RedisDeliveryRepository implements DeliveryRepository {
@Override
public void add(DeliveryRequestStatusType status) {
- throw new RuntimeException("Not Implemented Yet");
+ throw new UnsupportedOperationException("Not Implemented Yet");
}
@Override
public Optional<DeliveryRequestStatusType> getDeliveryRequestStatus(String appDeliveryID) {
- throw new RuntimeException("Not Implemented Yet");
+ throw new UnsupportedOperationException("Not Implemented Yet");
}
}