Skip to content

Commit

Permalink
chore: move the failure instance up
Browse files Browse the repository at this point in the history
  • Loading branch information
0utplay committed May 9, 2023
1 parent e5e6f32 commit 0deab4e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
@SuppressWarnings("ClassCanBeRecord")
public final class ServiceCreateResult {

/**
* A static create result indicating that the service creation failed.
*/
public static final ServiceCreateResult FAILED = new ServiceCreateResult(State.FAILED, null, null);

private final State state;
private final UUID creationId;
private final ServiceInfoSnapshot serviceInfo;
Expand Down Expand Up @@ -71,11 +76,6 @@ private ServiceCreateResult(
this.serviceInfo = serviceInfo;
}

/**
* A static create result indicating that the service creation failed.
*/
public static final ServiceCreateResult FAILED = new ServiceCreateResult(State.FAILED, null, null);

/**
* Creates a new result with the state set to deferred and using the given creation id.
*
Expand Down

0 comments on commit 0deab4e

Please sign in to comment.