- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {LocalDateTime l =
new LocalDateTime()
LocalDateTime.now()
DateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
- Smart code suggestions by Codota
}
public String getParameterAsStringOrNull(HttpServletRequest request, String paramName, String errorMessage) throws MissingPathException { String returnValue = StringUtil.nullIfEmpty(request.getParameter(paramName)); if (returnValue == null || "".equals(returnValue.trim())) { throw new MissingPathException(errorMessage); } return returnValue; }