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

Restrict getLiteralClass to a Number for NumberLiterals

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.1
    • 3.2
    • None
    • Patch

    Description

      getLiteralClass in ASTNumberLiteral returns Class<?> when it could return Class<? extends Number>

      I'd like to extend this to JexlArithmetic.narrowNumber, but that's a (trivial) breaking change so I left it out.

      Attachments

        1. patch0.patch
          2 kB
          Cameron Samak

        Activity

          People

            henrib Henri Biestro
            csamak Cameron Samak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: