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

    • source
    • minimal
    • Java API
    • SE

      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 {

            darcy Joe Darcy
            darcy Joe Darcy
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: