Skip to content

Commit

Permalink
chore: make the constructor private
Browse files Browse the repository at this point in the history
  • Loading branch information
0utplay committed May 7, 2023
1 parent c3415b3 commit e5e6f32
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*/
@ToString
@EqualsAndHashCode
// we need to be able to serialize this class and its fields without invoking the getters & setters to respond
// to service creation requests coming from the REST API
@SuppressWarnings("ClassCanBeRecord")
public final class ServiceCreateResult {

Expand All @@ -54,7 +56,7 @@ public final class ServiceCreateResult {
* @throws NullPointerException if the given state is null.
* @throws IllegalArgumentException if the creation id is missing or the service info depending on the given state.
*/
public ServiceCreateResult(
private ServiceCreateResult(
@NonNull State state,
@Nullable UUID creationId,
@Nullable ServiceInfoSnapshot serviceInfo
Expand Down

0 comments on commit e5e6f32

Please sign in to comment.