--- old/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDHandler.java 2017-11-06 22:19:13.022629313 -0800 +++ new/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDHandler.java 2017-11-06 22:19:12.571585321 -0800 @@ -1,6 +1,6 @@ /* * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved. - * @LastModified: Oct 2017 + * @LastModified: Nov 2017 */ /* * Licensed to the Apache Software Foundation (ASF) under one or more @@ -2581,7 +2581,7 @@ List gs; for (int i = 0; i < currGrammars.size(); i++) { // get the grammar - sg1 = (SchemaGrammar)currGrammars.get(i); + sg1 = currGrammars.get(i); // we need to add grammars imported by sg1 too gs = sg1.getImportedGrammars(); // for all grammars imported by sg2, but not in the vector @@ -2591,7 +2591,7 @@ } for (int j = gs.size() - 1; j >= 0; j--) { - sg2 = (SchemaGrammar)gs.get(j); + sg2 = gs.get(j); if (!currGrammars.contains(sg2)) { currGrammars.add(sg2); } @@ -2606,7 +2606,7 @@ final XSDDescription desc = new XSDDescription(); for (int i=0; i < length; i++) { - final SchemaGrammar sg1 = (SchemaGrammar)grammars.get(i); + final SchemaGrammar sg1 = grammars.get(i); desc.setNamespace(sg1.getTargetNamespace()); final SchemaGrammar sg2 = findGrammar(desc, false); @@ -2622,7 +2622,7 @@ final int size = components.size(); final XSDDescription desc = new XSDDescription(); for (int i=0; i