Skip to content

Commit 472d0ec

Browse files
Fix Docs CI (#314)
Fixes documentation error causing the docs CI to fail.
1 parent 4f935e5 commit 472d0ec

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

sdk/greengrass/event-stream-rpc-client/src/main/java/software/amazon/awssdk/eventstreamrpc/EventStreamRPCConnection.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ enum Phase {
2828
CONNECTED,
2929
CLOSING
3030
};
31-
31+
3232
Phase connectionPhase;
3333
ClientConnection connection;
3434
Throwable closeReason;
3535
boolean onConnectCalled;
36-
36+
3737
protected ConnectionState(Phase phase, ClientConnection connection) {
3838
this.connectionPhase = phase;
3939
this.connection = connection;
@@ -62,7 +62,7 @@ protected String getVersionString() {
6262

6363
/**
6464
* Connects to the event stream RPC server asynchronously
65-
*
65+
*
6666
* @return
6767
*/
6868
public CompletableFuture<Void> connect(final LifecycleHandler lifecycleHandler) {
@@ -143,7 +143,7 @@ protected void onProtocolMessage(List<Header> headers, byte[] payload, MessageTy
143143
LOGGER.warning("AccessDenied to event stream RPC server");
144144
connectionState.connectionPhase = ConnectionState.Phase.CLOSING;
145145
connectionState.connection.closeConnection(0);
146-
146+
147147
final AccessDeniedException ade = new AccessDeniedException("Connection access denied to event stream RPC server");
148148
if (!initialConnectFuture.isDone()) {
149149
initialConnectFuture.completeExceptionally(ade);
@@ -166,7 +166,7 @@ protected void onProtocolMessage(List<Header> headers, byte[] payload, MessageTy
166166
disconnect();
167167
} else if (MessageType.ProtocolError.equals(messageType) || MessageType.ServerError.equals(messageType)) {
168168
LOGGER.severe("Received " + messageType.name() + ": " + CRT.awsErrorName(CRT.awsLastError()));
169-
connectionState.closeReason = EventStreamError.create(headers, payload, messageType);
169+
connectionState.closeReason = EventStreamError.create(headers, payload, messageType);
170170
doOnError(lifecycleHandler, connectionState.closeReason);
171171
disconnect();
172172
} else {
@@ -344,7 +344,7 @@ public interface LifecycleHandler {
344344
* result in closing the connection. AccessDeniedException is such an example
345345
*
346346
* @param t Exception
347-
* @returns true if the connection should be terminated as a result of handling the error
347+
* @return true if the connection should be terminated as a result of handling the error
348348
*/
349349
boolean onError(Throwable t);
350350

sdk/src/main/java/software/amazon/awssdk/iot/AwsIotMqttConnectionBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ public static AwsIotMqttConnectionBuilder newMtlsCustomKeyOperationsBuilder(TlsC
157157
return new AwsIotMqttConnectionBuilder(tlsContextOptions);
158158
}
159159
}
160-
161-
/**
160+
161+
/**
162162
* Create a new builder with mTLS, using a certificate in a Windows certificate store.
163163
*
164164
* NOTE: Windows only
@@ -550,7 +550,7 @@ private String addUsernameParameter(String inputString, String parameterValue, S
550550
* @param authorizerSignature The signature of the custom authorizer. If null is passed, then 'x-amz-customauthorizer-signature'
551551
* will not be added with the MQTT connection.
552552
* @param password The password to use with the custom authorizer. If null is passed, then no password will be set.
553-
* @return
553+
* @return {@link AwsIotMqttConnectionBuilder}
554554
*/
555555
public AwsIotMqttConnectionBuilder withCustomAuthorizer(String username, String authorizerName, String authorizerSignature, String password) {
556556
isUsingCustomAuthorizer = true;

0 commit comments

Comments
 (0)