Migrate API DB provider to springboot data jpa
[policy/api.git] / main / src / main / java / org / onap / policy / api / main / rest / provider / StatisticsProvider.java
index 9dfc0dd..b7089ad 100644 (file)
@@ -24,8 +24,8 @@
 
 package org.onap.policy.api.main.rest.provider;
 
+import lombok.RequiredArgsConstructor;
 import org.onap.policy.api.main.rest.StatisticsReport;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 /**
@@ -34,10 +34,10 @@ import org.springframework.stereotype.Service;
  * @author Chenfei Gao (cgao@research.att.com)
  */
 @Service
+@RequiredArgsConstructor
 public class StatisticsProvider {
 
-    @Autowired
-    private StatisticsReport report;
+    private final StatisticsReport report;
 
     /**
      * Return the current API statistics.