return Result.SUCCESS;
}
- private static Result validateBoolean(@Nullable String value) {
+ private static Result validateBoolean(String value) {
if (!StringUtils.equalsIgnoreCase(value, "true") && !StringUtils.equalsIgnoreCase(value, "false")) {
return Result.newError("notBoolean");
}
return Result.SUCCESS;
}
- private static Result validateInteger(@Nullable String value) {
+ private static Result validateInteger(String value) {
if (!NumberUtils.isDigits(value)) {
return Result.newError("notInteger");
}
return Result.SUCCESS;
}
- private static Result validateFloat(@Nullable String value) {
+ private static Result validateFloat(String value) {
try {
Double.parseDouble(value);
return Result.SUCCESS;
*/
public class InternalRubyIssueService implements ServerComponent {
- private final static String ID_PARAM = "id";
- private final static String NAME_PARAM = "name";
- private final static String DESCRIPTION_PARAM = "description";
+ private static final String ID_PARAM = "id";
+ private static final String NAME_PARAM = "name";
+ private static final String DESCRIPTION_PARAM = "description";
private final IssueService issueService;
private final IssueCommentService commentService;