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

Possible bug in JexlArithmetic.isFloatingPointNumber

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: