Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2512

[patch] remove useless guard code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • XPath
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • PatchAvailable

    Description

      (Minor) Code has guard code that will never fire... patch removes

      if (lookbehind.length() == 1)

      { - char c0 = (lookbehind == null) ? '|' : lookbehind.charAt(0); + char c0 = lookbehind.charAt(0); isToken = (c0 == '|') ? false : (c0 == c); }

      Attachments

        1. uselesscode.diff
          0.5 kB
          David Brosius

        Activity

          People

            Unassigned Unassigned
            dbrosius David Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: