Skip to content

Commit

Permalink
style: fixed typo
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Martina <[email protected]>
  • Loading branch information
marcellorinaldo committed Feb 2, 2024
1 parent d22484d commit 967b81a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class SparkplugMqttClient {

private abstract class SessionStatus {

public abstract SessionStatus estabilishSession(boolean shouldConnectClient) throws KuraConnectException;
public abstract SessionStatus establishSession(boolean shouldConnectClient) throws KuraConnectException;

public abstract SessionStatus terminateSession(boolean shouldDisconnectClient, long quiesceTimeout);

Expand Down Expand Up @@ -218,7 +218,7 @@ private void setSocketFactory(String server) throws GeneralSecurityException, IO
private class Terminated extends SessionStatus {

@Override
public SessionStatus estabilishSession(boolean shouldConnectClient) throws KuraConnectException {
public SessionStatus establishSession(boolean shouldConnectClient) throws KuraConnectException {
return toEstabilishing(shouldConnectClient);
}

Expand All @@ -237,7 +237,7 @@ public SessionStatus confirmSession() {
private class Estabilishing extends SessionStatus {

@Override
public SessionStatus estabilishSession(boolean shouldConnectClient) throws KuraConnectException {
public SessionStatus establishSession(boolean shouldConnectClient) throws KuraConnectException {
return this;
}

Expand All @@ -256,7 +256,7 @@ public SessionStatus confirmSession() {
private class Estabilished extends SessionStatus {

@Override
public SessionStatus estabilishSession(boolean shouldConnectClient) throws KuraConnectException {
public SessionStatus establishSession(boolean shouldConnectClient) throws KuraConnectException {
return this;
}

Expand Down Expand Up @@ -309,7 +309,7 @@ public synchronized void handleConnectionLost() {

public synchronized void estabilishSession(boolean shouldConnectClient) throws KuraConnectException {
logger.debug("Requested session estabilishment");
doSessionTransition(this.sessionStatus.estabilishSession(shouldConnectClient));
doSessionTransition(this.sessionStatus.establishSession(shouldConnectClient));
}

public synchronized void terminateSession(boolean shouldDisconnectClient, long quiesceTimeout) {
Expand Down

0 comments on commit 967b81a

Please sign in to comment.