Not quite correct code sample in javadoc

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 9
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b34

        http://docs.oracle.com/javase/8/docs/api/java/net/URI.html

        Javadoc of the URI class contains this sample:

             new URI(u.getScheme(),
                     u.getUserInfo(), u.getAuthority(),
                     u.getPath(), u.getQuery(),
                     u.getFragment())
             .equals(u)

        The constructor used does not correspond to any existing one.
        Most likely u.getUserInfo() is redundant here.

              Assignee:
              Ivan Gerasimov
              Reporter:
              Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: