Skip to content

Commit 4406c99

Browse files
author
sgonzalezMSFT
committed
Make TelemetryConsumer internal
1 parent ecbc892 commit 4406c99

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/main/java/com/microsoft/aad/msal4j/ClientApplicationBase.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package com.microsoft.aad.msal4j;
55

66
import com.nimbusds.oauth2.sdk.auth.ClientAuthentication;
7+
import lombok.AccessLevel;
78
import lombok.Getter;
89
import lombok.experimental.Accessors;
910
import org.slf4j.Logger;
@@ -53,7 +54,7 @@ abstract class ClientApplicationBase implements IClientApplicationBase {
5354
private ServiceBundle serviceBundle;
5455

5556
@Accessors(fluent = true)
56-
@Getter
57+
@Getter(AccessLevel.PACKAGE)
5758
private Consumer<List<HashMap<String, String>>> telemetryConsumer;
5859

5960
@Override
@@ -356,14 +357,14 @@ public T sslSocketFactory(SSLSocketFactory val) {
356357
return self();
357358
}
358359

359-
public T telemetryConsumer(Consumer<List<HashMap<String, String>>> val) {
360+
T telemetryConsumer(Consumer<List<HashMap<String, String>>> val) {
360361
validateNotNull("telemetryConsumer", val);
361362

362363
telemetryConsumer = val;
363364
return self();
364365
}
365366

366-
public T onlySendFailureTelemetry(Boolean val) {
367+
T onlySendFailureTelemetry(Boolean val) {
367368

368369
onlySendFailureTelemetry = val;
369370
return self();

src/main/java/com/microsoft/aad/msal4j/IClientApplicationBase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ public interface IClientApplicationBase {
6161
*/
6262
ITokenCache tokenCache();
6363

64-
/**
65-
* @return Telemetry consumer that will receive telemetry events emitted by the library.
66-
*/
67-
java.util.function.Consumer<java.util.List<java.util.HashMap<String, String>>> telemetryConsumer();
64+
// /**
65+
// * @return Telemetry consumer that will receive telemetry events emitted by the library.
66+
// */
67+
// java.util.function.Consumer<java.util.List<java.util.HashMap<String, String>>> telemetryConsumer();
6868

6969
/**
7070
* Acquires security token from the authority using an authorization code previously received.

0 commit comments

Comments
 (0)