Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293478

[java.desktop/macOS] Condense SDRenderType usages in QuartzRenderer.m

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • client-libs
    • 2d
    • os_x

      The SDRenderType enum is often returned using a variable declared at the start of functions. These can be inlined in the return itself. Using a ternary operator condenses what may be 12 lines into one, in the most extreme cases. doRectUsingCG and doPolyUsingCG were both modified more than the rest, but still are equivalent.

            jwaters Julian Waters
            jwaters Julian Waters
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: