< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/UnionPathExpr.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.
*** 58,68 **** super.setParser(parser); // find all expressions in this Union final List<Expression> components = new ArrayList<>(); flatten(components); final int size = components.size(); ! _components = (Expression[])components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i]; --- 58,68 ---- super.setParser(parser); // find all expressions in this Union final List<Expression> components = new ArrayList<>(); flatten(components); final int size = components.size(); ! _components = components.toArray(new Expression[size]); for (int i = 0; i < size; i++) { _components[i].setParser(parser); _components[i].setParent(this); if (_components[i] instanceof Step) { final Step step = (Step)_components[i];
< prev index next >