Updated the version of direction dependencies
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / dmaap / store / UniqueRequestIdCache.java
index 070159e..6e28fdc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2020 ZTE Corporation.
+ * Copyright 2020-2022 ZTE Corporation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 package org.onap.holmes.common.dmaap.store;
 
-import org.jvnet.hk2.annotations.Service;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Component;
 
-import javax.inject.Singleton;
 import java.util.concurrent.ConcurrentHashMap;
 
-@Service
-@Singleton
+@Component
 public class UniqueRequestIdCache extends ConcurrentHashMap<String, String> {
 
     private static final Logger log = LoggerFactory.getLogger(UniqueRequestIdCache.class);
@@ -35,7 +33,7 @@ public class UniqueRequestIdCache extends ConcurrentHashMap<String, String> {
     }
 
     public String remove(String alarmId) {
-        log.info(String.format("<%s> was removed into UniqueRequestIdCache.", alarmId));
+        log.info(String.format("<%s> was removed from UniqueRequestIdCache.", alarmId));
         return super.remove(alarmId);
     }
 }