You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by an...@apache.org on 2017/04/13 14:09:36 UTC
svn commit: r1791257 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/ApproximateCounter.java
Author: angela
Date: Thu Apr 13 14:09:36 2017
New Revision: 1791257
URL: http://svn.apache.org/viewvc?rev=1791257&view=rev
Log:
OAK-6078 : oak.util.ApproximateCounter must have private constructor
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/ApproximateCounter.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/ApproximateCounter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/ApproximateCounter.java?rev=1791257&r1=1791256&r2=1791257&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/ApproximateCounter.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/util/ApproximateCounter.java Thu Apr 13 14:09:36 2017
@@ -36,7 +36,10 @@ public class ApproximateCounter {
public static final int COUNT_MAX = 10000000;
private static final Random RANDOM = new Random();
-
+
+ private ApproximateCounter() {
+ }
+
/**
* Calculate the approximate offset from a given offset. The offset is the
* number of added or removed entries. The result is 0 in most of the cases,