From 366bec5631bcf141f14ba49fef228c01e3889594 Mon Sep 17 00:00:00 2001 From: Vikentiy Fesunov Date: Wed, 24 Nov 2021 18:46:04 +0100 Subject: [PATCH] Fix visibility for overrideable methods 75df66acef added option to override sampling behavior, but we need to expose methods used to build the client for it to be useful. --- src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java | 2 +- .../com/timgroup/statsd/NonBlockingStatsDClientBuilder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java index f394890b..6014e55a 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java @@ -366,7 +366,7 @@ private NonBlockingStatsDClient(final String prefix, final int queueSize, final * * @see NonBlockingStatsDClientBuilder#resolve() */ - NonBlockingStatsDClient(final NonBlockingStatsDClientBuilder builder) throws StatsDClientException { + public NonBlockingStatsDClient(final NonBlockingStatsDClientBuilder builder) throws StatsDClientException { this(builder.prefix, builder.queueSize, builder.constantTags, builder.errorHandler, builder.addressLookup, builder.telemetryAddressLookup, builder.timeout, builder.socketBufferSize, builder.maxPacketSizeBytes, builder.entityID, diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClientBuilder.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClientBuilder.java index f0d75e86..e72c2f6c 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClientBuilder.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClientBuilder.java @@ -179,7 +179,7 @@ public NonBlockingStatsDClient build() throws StatsDClientException { * Creates a copy of this builder with any implicit elements resolved. * @return the resolved copy of the builder. */ - NonBlockingStatsDClientBuilder resolve() { + protected NonBlockingStatsDClientBuilder resolve() { NonBlockingStatsDClientBuilder resolved; try {