From 152bcbc9ca9b7cf4fb8d189c7d833e351a97935e Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Wed, 22 Jun 2011 15:07:51 +0700 Subject: [PATCH 3/5] Fixed typo in comment and error messages: s/then/than/. No functional changes. --- .../web/controller/TopicAnswerController.java | 2 +- .../java/org/jtalks/jcommune/web/dto/TopicDto.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/controller/TopicAnswerController.java b/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/controller/TopicAnswerController.java index 32baa49..f63592b 100644 --- a/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/controller/TopicAnswerController.java +++ b/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/controller/TopicAnswerController.java @@ -56,7 +56,7 @@ public class TopicAnswerController { * If the user isn't logged in he will be redirected to the login page. * * @param topicId the id of the topic for the answer - * @param validationError is true when post length is less then 2 + * @param validationError is true when post length is less than 2 * @param branchId branch * @return answering {@code ModelAndView} or redirect to the login page * @throws org.jtalks.jcommune.service.exceptions.NotFoundException diff --git a/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java b/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java index 37cc1df..e5f03bf 100644 --- a/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java +++ b/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java @@ -28,11 +28,11 @@ import javax.validation.constraints.Size; */ public class TopicDto { - @NotNull(message = "Length should be bigger then 5 and less then 255") + @NotNull(message = "Length should be bigger than 5 and less than 255") @Size(min = 5, max = 255) private String topicName; - @NotNull(message = "Length should be bigger then 2 and less then 1000") + @NotNull(message = "Length should be bigger than 2 and less than 1000") @Size(min = 2, max = 1000) private String bodyText; -- 1.7.4.1