code: @Nonnull
      @SuppressFBWarnings("RV_RETURN_VALUE_IGNORED_BAD_PRACTICE")
      public String format(@Nonnull Date date) {
          SimpleDateFormat dateFormat = dateFormats.poll();
          if (dateFormat == null) {
              dateFormat = new SimpleDateFormat(pattern, locale);
              dateFormat.setTimeZone(timeZone);
          }
          try {
              return dateFormat.format(date);
          } finally {
              dateFormats.offer(dateFormat);
          }
      }
docs: Formats a Date into a date/time string.
  
  @param date the time value to be formatted into a time string.
  @return the formatted time string.