-
CSR
-
Resolution: Approved
-
P4
-
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 {
- csr for
-
JDK-8031326 Use Class<?> rather than Class in java.net method signatures
-
- Resolved
-