From d6ab8119a770950527ecf6094a0c7310d3e2fd2b Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 5 Apr 2023 21:34:29 +0200 Subject: [PATCH] [Minor] GenericReport: Field 'counter' is accessed in both synchronized and unsynchronized contexts --- .../src/main/java/li/strolch/report/policy/GenericReport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/li/strolch/report/policy/GenericReport.java b/service/src/main/java/li/strolch/report/policy/GenericReport.java index 2e58ef423..9c80dd3b8 100644 --- a/service/src/main/java/li/strolch/report/policy/GenericReport.java +++ b/service/src/main/java/li/strolch/report/policy/GenericReport.java @@ -229,7 +229,7 @@ public class GenericReport extends ReportPolicy { } @Override - public long getCounter() { + public synchronized long getCounter() { return this.counter; }