Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Removed odd Validated annotation #265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import org.springframework.validation.annotation.Validated;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? What kind of replacement do we have?


import javax.annotation.concurrent.Immutable;
import javax.validation.constraints.NotBlank;

@SuperBuilder
@Immutable
@Getter
@Validated
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Schema(description = "Сущность для блокировки пользователя")
public class LockedUserDto {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import org.springframework.validation.annotation.Validated;

import javax.annotation.concurrent.Immutable;
import javax.validation.constraints.NotBlank;

@Immutable
@Validated
@Getter
@SuperBuilder
@EqualsAndHashCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import org.springframework.validation.annotation.Validated;

import javax.annotation.concurrent.Immutable;
import javax.validation.constraints.NotBlank;

@SuperBuilder
@Immutable
@Validated
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Schema(description = "Сущность для сообщения")
public class MessageRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import org.springframework.validation.annotation.Validated;

import javax.annotation.concurrent.Immutable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Immutable
@Validated
@Getter
@EqualsAndHashCode
@SuperBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import org.springframework.validation.annotation.Validated;

import javax.annotation.concurrent.Immutable;
import javax.validation.constraints.Email;
Expand All @@ -18,7 +17,6 @@
@Getter
@EqualsAndHashCode
@SuperBuilder
@Validated
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Schema(description = "Сущность пользователя", requiredProperties = {"password, passwordConfirm"})
public class UserRegistrationDto {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import org.springframework.validation.annotation.Validated;

import javax.annotation.concurrent.Immutable;
import javax.validation.constraints.NotBlank;
Expand All @@ -15,7 +14,6 @@
@Immutable
@SuperBuilder
@Getter
@Validated
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Schema(description = "Сущность для смены пароля", requiredProperties = "passwordConfirm")
public class UserPasswordDto {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import org.springframework.validation.annotation.Validated;

import javax.annotation.concurrent.Immutable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@SuperBuilder
@Immutable
@Validated
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Schema(description = "Сущность для изменения данных пользователя", requiredProperties = {"newPassword", "passwordConfirm"})
Expand Down
Loading