Skip to content

Commit f48361b

Browse files
committed
Fix zerobucket comments and visibility
1 parent d861def commit f48361b

File tree

1 file changed

+2
-2
lines changed
  • libs/exponential-histogram/src/main/java/org/elasticsearch/exponentialhistogram

1 file changed

+2
-2
lines changed

libs/exponential-histogram/src/main/java/org/elasticsearch/exponentialhistogram/ZeroBucket.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public ZeroBucket(double zeroThreshold, long count) {
7272
this.count = count;
7373
}
7474

75-
ZeroBucket(long index, int scale, long count) {
75+
private ZeroBucket(long index, int scale, long count) {
7676
assert index >= MIN_INDEX && index <= MAX_INDEX : "index must be in range [" + MIN_INDEX + ", " + MAX_INDEX + "]";
7777
assert scale >= MIN_SCALE && scale <= MAX_SCALE : "scale must be in range [" + MIN_SCALE + ", " + MAX_SCALE + "]";
7878
this.index = index;
@@ -82,9 +82,9 @@ public ZeroBucket(double zeroThreshold, long count) {
8282
}
8383

8484
private ZeroBucket(double realThreshold, long index, int scale, long count) {
85+
this.realThreshold = realThreshold;
8586
this.index = index;
8687
this.scale = scale;
87-
this.realThreshold = realThreshold; // compute lazily when needed
8888
this.count = count;
8989
}
9090

0 commit comments

Comments
 (0)