/super-csv/src/main/java/org/supercsv/encoder/DefaultCsvEncoder.java
final boolean quotesRequiredForMode = preference.getQuoteMode( ).quotesRequired( input, preference) ;
final boolean quotesRequiredForMode = preference.getQuoteMode ( ) .quotesRequired ( input, context, preference ) ;
currentColumn.append(eolSymbols); context.setLineNumber(context.getLineNumber() + 1); } else { currentColumn.append(c); } } <extra_id_0> final boolean quotesRequiredForSurroundingSpaces = preference.isSurroundingSpacesNeedQuotes() && input.length() > 0 && (input.charAt(0) == ' ' || input.charAt(input.length() - 1) == ' '); if( quotesRequiredForSpecialChar || quotesRequiredForMode || quotesRequiredForSurroundingSpaces ) { currentColumn.insert(0, quote).append(quote); } return currentColumn.toString();