--- old/src/java.xml/share/classes/org/w3c/dom/bootstrap/DOMImplementationRegistry.java 2017-11-06 22:19:43.784629672 -0800 +++ new/src/java.xml/share/classes/org/w3c/dom/bootstrap/DOMImplementationRegistry.java 2017-11-06 22:19:43.327585094 -0800 @@ -213,8 +213,7 @@ int size = sources.size(); String name = null; for (int i = 0; i < size; i++) { - DOMImplementationSource source = - (DOMImplementationSource) sources.get(i); + DOMImplementationSource source = sources.get(i); DOMImplementation impl = source.getDOMImplementation(features); if (impl != null) { return impl; @@ -238,8 +237,7 @@ final List implementations = new ArrayList<>(); int size = sources.size(); for (int i = 0; i < size; i++) { - DOMImplementationSource source = - (DOMImplementationSource) sources.get(i); + DOMImplementationSource source = sources.get(i); DOMImplementationList impls = source.getDOMImplementationList(features); for (int j = 0; j < impls.getLength(); j++) { @@ -251,8 +249,7 @@ public DOMImplementation item(final int index) { if (index >= 0 && index < implementations.size()) { try { - return (DOMImplementation) - implementations.get(index); + return implementations.get(index); } catch (IndexOutOfBoundsException e) { return null; }