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

ExternalSpecsWriter should ignore white-space differences in spec titles

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • 21
    • tools
    • None

      ExternalSpecsWriter currently requires an exact match for titles.

      Given recent usage of `@spec` has shown use of long titles that
      generally require line-wrapping, we should soften the check to
      ignore whitespace differences, perhaps by normalizing it in
      `checkUniqueItems`.

      OLD:
                  if (ii.getDocTree() instanceof SpecTree st) {
                      String url = st.getURL().toString();
                      String title = st.getTitle().toString();

      NEW:
                      String title = st.getTitle().toString().replaceAll("\\s+", " ");

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

              Created:
              Updated:
              Resolved: