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

Remove obsolete properties from javadoc resource file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 20
    • None
    • tools
    • None

    Description

      JDK-8267126 provided a significant refactoring and renaming from the old javadoc `Messager` class to `JavadocLog`.

      As a result, some resources properties became unused: specifically, those of the form `javadoc.*.msg` and `javadoc.*.pos.msg` as exemplified in this code that was deleted in the fix for JDK-8267126.

        private void report(DiagnosticType type, String pos, String msg) {
              switch (type) {
                  case ERROR:
                  case WARNING:
                      Object prefix = (pos == null) ? programName : pos;
                      report(javadocDiags.create(type, null, null, "msg", prefix, msg));
                      break;

                  case NOTE:
                      String key = (pos == null) ? "msg" : "pos.msg";
                      report(javadocDiags.create(type, null, null, key, pos, msg));
                      break;

                  default:
                      throw new IllegalArgumentException(type.toString());
              }
          }

      Attachments

        Issue Links

          Activity

            People

              jjg Jonathan Gibbons
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: