From 3d075240fd206f25d11f6d26b6bbd598db83e66b Mon Sep 17 00:00:00 2001 From: Soroosh Taefi Date: Wed, 11 Dec 2024 21:13:52 +0200 Subject: [PATCH] fix!: mark ValidationResult constructors as private (#2958) --- .../com/vaadin/hilla/signals/operation/ValidationResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/java/endpoint/src/main/java/com/vaadin/hilla/signals/operation/ValidationResult.java b/packages/java/endpoint/src/main/java/com/vaadin/hilla/signals/operation/ValidationResult.java index 1db905bce..a16e29223 100644 --- a/packages/java/endpoint/src/main/java/com/vaadin/hilla/signals/operation/ValidationResult.java +++ b/packages/java/endpoint/src/main/java/com/vaadin/hilla/signals/operation/ValidationResult.java @@ -25,12 +25,12 @@ public enum Status { private final Status status; private final String errorMessage; - public ValidationResult(Status status, String errorMessage) { + private ValidationResult(Status status, String errorMessage) { this.status = status; this.errorMessage = errorMessage; } - public ValidationResult(Status status) { + private ValidationResult(Status status) { this.status = status; this.errorMessage = null; }