Skip to content

Commit d0dc865

Browse files
committed
MqttClientConfig.getClientIdentifier -> getIdentifier
1 parent 074ab31 commit d0dc865

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/main/java/com/hivemq/client/internal/mqtt/MqttClientConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public MqttClientConfig(
102102
}
103103

104104
@Override
105-
public @NotNull Optional<MqttClientIdentifier> getClientIdentifier() {
105+
public @NotNull Optional<MqttClientIdentifier> getIdentifier() {
106106
return (clientIdentifier == MqttClientIdentifierImpl.REQUEST_CLIENT_IDENTIFIER_FROM_SERVER) ? Optional.empty() :
107107
Optional.of(clientIdentifier);
108108
}

src/main/java/com/hivemq/client/internal/mqtt/mqtt3/Mqtt3ClientConfigView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public Mqtt3ClientConfigView(final @NotNull MqttClientConfig delegate) {
5656
}
5757

5858
@Override
59-
public @NotNull Optional<MqttClientIdentifier> getClientIdentifier() {
60-
return delegate.getClientIdentifier();
59+
public @NotNull Optional<MqttClientIdentifier> getIdentifier() {
60+
return delegate.getIdentifier();
6161
}
6262

6363
@Override

src/main/java/com/hivemq/client/mqtt/MqttClientBuilderBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
public interface MqttClientBuilderBase<B extends MqttClientBuilderBase<B>> extends MqttTransportConfigBuilderBase<B> {
3838

3939
/**
40-
* Sets the {@link MqttClientConfig#getClientIdentifier() Client Identifier}.
40+
* Sets the {@link MqttClientConfig#getIdentifier() Client Identifier}.
4141
*
4242
* @param identifier the string representation of the Client Identifier.
4343
* @return the builder.
@@ -46,7 +46,7 @@ public interface MqttClientBuilderBase<B extends MqttClientBuilderBase<B>> exten
4646
@NotNull B identifier(@NotNull String identifier);
4747

4848
/**
49-
* Sets the {@link MqttClientConfig#getClientIdentifier() Client Identifier}.
49+
* Sets the {@link MqttClientConfig#getIdentifier() Client Identifier}.
5050
*
5151
* @param identifier the Client Identifier.
5252
* @return the builder.

src/main/java/com/hivemq/client/mqtt/MqttClientConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public interface MqttClientConfig {
4747
*
4848
* @return the (currently not present) identifier of the client.
4949
*/
50-
@NotNull Optional<MqttClientIdentifier> getClientIdentifier();
50+
@NotNull Optional<MqttClientIdentifier> getIdentifier();
5151

5252
/**
5353
* @return the transport configuration of the client.

0 commit comments

Comments
 (0)