Skip to content

Commit

Permalink
Improve thread safety of CounterSpecification
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Apr 2, 2020
1 parent 4ba4ed8 commit 7e95c81
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -20,11 +20,11 @@
public class CounterSpecification implements DebugDumpable {

private final AtomicInteger count = new AtomicInteger(0);
private long counterStart;
private volatile long counterStart;

private String oid;
private PolicyRuleType policyRule;
private String policyRuleId;
private final String oid;
private final PolicyRuleType policyRule;
private final String policyRuleId;

public CounterSpecification(String oid, String policyRuleId, PolicyRuleType policyRule) {
this.oid = oid;
Expand Down

0 comments on commit 7e95c81

Please sign in to comment.