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

Missing or indadequate javadoc for URLDataSource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.0fcs
    • alpha
    • other-libs
    • None
    • 1.0fcs
    • generic
    • solaris_2.6
    • Verified

        Javadoc for URLDataSource:
        No java doc description for getContentType. Current implementation does:
        Opens a URLConnnection. If successful returns the value of URLConnection.getContentType
        if not, returns null.

            /**
             * The getOutputStream method from DataSource
             */
            public InputStream getInputStream() throws IOException {

        Note the mismatch between doc and method name. For both getInput and getOutputStream, a more
        meaningful description would be:
        return the ...Stream from the URLConnection, first opening and caching the connection if necessary.

              duke J. Duke
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: