code: public double getBucketMaximum(int i) {
          if (i < bucketLimits.length) {
              return bucketLimits[i];
          } else if (getBucketCount(i) == 0) {
              // last bucket, but empty
              return Double.MAX_VALUE;
          } else {
              return getMaximum();
          }
      }
docs: Gets the maximum for values recorded in a bucket.
  This is an <em>exclusive</em> maximum; values equal to the
  bucket limit are counted in the subsequent bucket.