Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set public visibility on Event fields #11

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/main/java/com/digitalpetri/netty/fsm/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public String toString() {

class Connect implements Event {

final CompletableFuture<Channel> channelFuture = new CompletableFuture<>();
public final CompletableFuture<Channel> channelFuture = new CompletableFuture<>();

@Override
public String toString() {
Expand All @@ -43,7 +43,7 @@ public String toString() {

class ConnectSuccess implements Event {

final Channel channel;
public final Channel channel;

public ConnectSuccess(Channel channel) {
this.channel = channel;
Expand All @@ -57,7 +57,7 @@ public String toString() {

class ConnectFailure implements Event {

final Throwable failure;
public final Throwable failure;

public ConnectFailure(Throwable failure) {
this.failure = failure;
Expand All @@ -71,7 +71,7 @@ public String toString() {

class Disconnect implements Event {

final CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();
public final CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();

@Override
public String toString() {
Expand All @@ -89,9 +89,9 @@ public String toString() {

class GetChannel implements Event {

final CompletableFuture<Channel> channelFuture = new CompletableFuture<>();
public final CompletableFuture<Channel> channelFuture = new CompletableFuture<>();

final boolean waitForReconnect;
public final boolean waitForReconnect;

GetChannel() {
this(true);
Expand All @@ -109,7 +109,7 @@ public String toString() {

class KeepAliveFailure implements Event {

final Throwable failure;
public final Throwable failure;

KeepAliveFailure(Throwable failure) {
this.failure = failure;
Expand Down
Loading