Uploaded image for project: 'CCC Migration Project'
  1. CCC Migration Project
  2. CCC-8031326

Use Class<?> rather than Class in java.net method signatures

    XMLWordPrintable

    Details

    • Subcomponent:
    • Compatibility Kind:
      source
    • Compatibility Risk:
      minimal
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      Summary

      Update two java.net methods to take Class[] rather than raw Class[] as the type of a parameter.

      Problem

      Several methods in java.net use raw Class in signatures; this should be fixed.

      Solution

      Use Class rather than Class.

      Specification

      java/net/URL.java:
      -    public final Object getContent(Class[] classes)
      +    public final Object getContent(Class<?>[] classes) java/net/URLConnection.java -    public Object getContent(Class[] classes) throws IOException {
      +    public Object getContent(Class<?>[] classes) throws IOException {

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Reviewed By:
              Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: