Skip to content

Commit 9bdcedc

Browse files
committed
nit
1 parent e270fc0 commit 9bdcedc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SignalR/clients/java/signalr/src/main/java/com/microsoft/signalr/HubConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private void stopConnection(String errorMessage) {
454454
*/
455455
public void send(String method, Object... args) {
456456
if (hubConnectionState != HubConnectionState.CONNECTED) {
457-
throw new RuntimeException("The 'send' method cannot be called if the connection is not active");
457+
throw new RuntimeException("The 'send' method cannot be called if the connection is not active.");
458458
}
459459

460460
InvocationMessage invocationMessage = new InvocationMessage(null, method, args);
@@ -473,7 +473,7 @@ public void send(String method, Object... args) {
473473
@SuppressWarnings("unchecked")
474474
public <T> Single<T> invoke(Class<T> returnType, String method, Object... args) {
475475
if (hubConnectionState != HubConnectionState.CONNECTED) {
476-
throw new RuntimeException("The 'invoke' method cannot be called if the connection is not active");
476+
throw new RuntimeException("The 'invoke' method cannot be called if the connection is not active.");
477477
}
478478

479479
String id = connectionState.getNextInvocationId();

src/SignalR/clients/java/signalr/src/test/java/com/microsoft/signalr/HubConnectionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ public void cannotSendBeforeStart() {
900900
assertEquals(HubConnectionState.DISCONNECTED, hubConnection.getConnectionState());
901901

902902
Throwable exception = assertThrows(RuntimeException.class, () -> hubConnection.send("inc"));
903-
assertEquals("The 'send' method cannot be called if the connection is not active", exception.getMessage());
903+
assertEquals("The 'send' method cannot be called if the connection is not active.", exception.getMessage());
904904
}
905905

906906
@Test
@@ -909,7 +909,7 @@ public void cannotInvokeBeforeStart() {
909909
assertEquals(HubConnectionState.DISCONNECTED, hubConnection.getConnectionState());
910910

911911
Throwable exception = assertThrows(RuntimeException.class, () -> hubConnection.invoke(String.class, "inc", "arg1"));
912-
assertEquals("The 'invoke' method cannot be called if the connection is not active", exception.getMessage());
912+
assertEquals("The 'invoke' method cannot be called if the connection is not active.", exception.getMessage());
913913
}
914914

915915
@Test

0 commit comments

Comments
 (0)