lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "AppChecker (JIRA)" <>
Subject [jira] [Created] (SOLR-9413) Function result is ignored
Date Sat, 13 Aug 2016 14:43:20 GMT
AppChecker created SOLR-9413:

             Summary: Function result is ignored
                 Key: SOLR-9413
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 6.1
            Reporter: AppChecker
            Priority: Minor


Code in the method [CSVUtil. quoteEscape|]
    if (result.indexOf('\"') >= 0) {
      result.replace("\"", ESCAPED_QUOTE);
ignores the return value of the String.replace method.

Probably, is should be:
    if (result.indexOf('\"') >= 0) {
      result = result.replace("\"", ESCAPED_QUOTE);
This possible defect found by [static code analyzer AppChecker|]

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message