Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-188

Possible bug in JexlArithmetic.isFloatingPointNumber

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0
    • 3.1
    • None

    Description

      Reported by FindBugs is the message

      "Useless condition: it's known that ch <= '9' at this point"

      if (ch != '+' && ch != '-' && ch < '0' && ch > '9') 
      

      Possibly && (ch < '0' || ch > '9') was meant ?

      Attachments

        Activity

          People

            henrib Henri Biestro
            dmitri_blinov Dmitri Blinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: