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

Annotate System.lineSeparator @Stable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • None
    • core-libs
    • None

      The private static variable `lineSeparator` is only updated once and cannot be modified from the outside. Hence, it can be annotated with `@Stable` to enable constant folding optimizations.

            Unassigned Unassigned
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: