Summary
A few java.xml APIs contained raw types. This change adds the type parameter to eliminate raw types.
Problem
The following java.xml APIs contain method declarations with raw types:
javax/xml/namespace/NamespaceContext.java
Iterator getPrefixes(String namespaceURI);
javax/xml/xpath/XPathFunction.java
public Object evaluate(List args)
org/xml/sax/helpers/NamespaceSupport.java
public Enumeration getPrefixes ()
public Enumeration getPrefixes (String uri)
public Enumeration getDeclaredPrefixes ()
Solution
Add the type parameter to eliminate the raw types.
Specification
src/java.xml/share/classes/javax/xml/namespace/NamespaceContext.java
- Iterator getPrefixes(String namespaceURI);
+ Iterator<String> getPrefixes(String namespaceURI);
src/java.xml/share/classes/javax/xml/xpath/XPathFunction.java
- public Object evaluate(List args)
+ public Object evaluate(List<Object> args)
src/java.xml/share/classes/org/xml/sax/helpers/NamespaceSupport.java
- public Enumeration getPrefixes ()
+ public Enumeration<String> getPrefixes ()
- public Enumeration getPrefixes (String uri)
+ public Enumeration<String> getPrefixes (String uri)
- public Enumeration getDeclaredPrefixes ()
+ public Enumeration<String> getDeclaredPrefixes ()
- csr of
-
JDK-8181150 Fix lint warnings in JAXP repo: rawtypes and unchecked
-
- Resolved
-
- relates to
-
JDK-8191161 Reconsider generification of XPathFunction.evaluate
-
- Resolved
-