code: private static void validateCsvFormat(CharSequence value) {
          int length = value.length();
          for (int i = 0; i < length; i++) {
              switch (value.charAt(i)) {
                  case DOUBLE_QUOTE:
                  case LINE_FEED:
                  case CARRIAGE_RETURN:
                  case COMMA:
                      // If value contains any special character, it should be enclosed with double-quotes
                      throw newInvalidEscapedCsvFieldException(value, i);
                  default:
              }
          }
      }
docs: Validate if {@code value} is a valid csv field without double-quotes.
  
  @throws IllegalArgumentException if {@code value} needs to be encoded with double-quotes.