< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/util/XSGrammarPool.java

Print this page

        

*** 1,8 **** /* * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. ! * @LastModified: Oct 2017 */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. --- 1,8 ---- /* * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. ! * @LastModified: Nov 2017 */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership.
*** 62,72 **** } int size = list.size(); if (size == 0) { return toXSModel(new SchemaGrammar[0], schemaVersion); } ! SchemaGrammar[] gs = (SchemaGrammar[])list.toArray(new SchemaGrammar[size]); return toXSModel(gs, schemaVersion); } protected XSModel toXSModel(SchemaGrammar[] grammars, short schemaVersion) { return new XSModelImpl(grammars, schemaVersion); --- 62,72 ---- } int size = list.size(); if (size == 0) { return toXSModel(new SchemaGrammar[0], schemaVersion); } ! SchemaGrammar[] gs = list.toArray(new SchemaGrammar[size]); return toXSModel(gs, schemaVersion); } protected XSModel toXSModel(SchemaGrammar[] grammars, short schemaVersion) { return new XSModelImpl(grammars, schemaVersion);
< prev index next >