Skip to content

Commit bf9475b

Browse files
Review No 2: annotation was edited, message was edited
1 parent 18331c1 commit bf9475b

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/main/java/ru/mystamps/web/feature/series/sale/AddSeriesSalesForm.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@
3535
// @todo #503 Add integration test to ensure that seller and buyer are different
3636
@Getter
3737
@Setter
38-
@FieldsMismatch(
39-
first = "sellerId",
40-
second = "buyerId",
41-
message = "{seller.buyer.match}"
42-
)
38+
@FieldsMismatch(first = "sellerId", second = "buyerId", message = "{seller.buyer.match}")
4339
public class AddSeriesSalesForm implements AddSeriesSalesDto {
4440

4541
@DateTimeFormat(pattern = "dd.MM.yyyy")

src/main/resources/ru/mystamps/i18n/ValidationMessages.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ login.repetition_chars = Login must not contain repetition of hyphen, dot or und
4848

4949
password.mismatch = Password mismatch
5050
password.login.match = Password and login must be different
51-
5251
seller.buyer.match = Seller and buyer must be different
5352

5453
name.invalid = Name must consist only letters, hyphen or spaces

src/main/resources/ru/mystamps/i18n/ValidationMessages_ru.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ login.repetition_chars = \u041B\u043E\u0433\u0438\u043D \u043D\u0435 \u0434\u043
4848

4949
password.mismatch = \u041F\u0430\u0440\u043E\u043B\u0438 \u043D\u0435 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u044E\u0442
5050
password.login.match = \u041F\u0430\u0440\u043E\u043B\u044C \u0438 \u043B\u043E\u0433\u0438\u043D \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0442\u044C
51-
52-
seller.buyer.match= \u041F\u0440\u043E\u0434\u0430\u0432\u0435\u0446 \u0438 \u043F\u043E\u043A\u0443\u043F\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0442\u044C
51+
seller.buyer.match = \u041F\u0440\u043E\u0434\u0430\u0432\u0435\u0446 \u0438 \u043F\u043E\u043A\u0443\u043F\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u044B \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0442\u044C
5352

5453
name.invalid = \u0418\u043C\u044F \u043C\u043E\u0436\u0435\u0442 \u0441\u043E\u0441\u0442\u043E\u044F\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0438\u0437 \u0431\u0443\u043A\u0432, \u0434\u0435\u0444\u0438\u0441\u0430 \u0438\u043B\u0438 \u043F\u0440\u043E\u0431\u0435\u043B\u043E\u0432
5554

0 commit comments

Comments
 (0)