Don't use exceptions for flow control in CssParser.colorValueOfString()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx26
    • Component/s: javafx
    • None

      CssParser.colorValueOfString() parses a string into a Color. If this fails by throwing an exception, null is returned, signalling to the caller that the color string might be a lookup instead.

      Since color lookups can appear in many places in a CSS file, it is preferable to use return values for flow control instead of exceptions.

            Assignee:
            Michael Strauß
            Reporter:
            Michael Strauß
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: