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

Pattern.Bound has `static` fields that should be `static final`.

XMLWordPrintable

    • b18
    • generic
    • generic

            static final class Bound extends Node {
                static int LEFT = 0x1;
                static int RIGHT= 0x2;
                static int BOTH = 0x3;
                static int NONE = 0x4;

        The fields are never reassigned and the lack of `final` seems to be an oversight.

              emcmanus Eamonn McManus
              emcmanus Eamonn McManus
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: