< prev index next >

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

Print this page

        

*** 1,8 **** /* * Copyright (c) 2015, 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) 2015, 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.
*** 282,292 **** // then for each of the direct substitutions, get its substitution // group, and combine the groups together. short dMethod, bMethod, dSubMethod, bSubMethod; for (int i = group.size()-1, j; i >= 0; i--) { // Check whether this element is blocked. If so, ignore it. ! XSElementDecl sub = (XSElementDecl)group.get(i); if (!getDBMethods(sub.fType, element.fType, methods)) continue; // Remember derivation methods and blocks from the types dMethod = methods.dMethod; bMethod = methods.bMethod; --- 282,292 ---- // then for each of the direct substitutions, get its substitution // group, and combine the groups together. short dMethod, bMethod, dSubMethod, bSubMethod; for (int i = group.size()-1, j; i >= 0; i--) { // Check whether this element is blocked. If so, ignore it. ! XSElementDecl sub = group.get(i); if (!getDBMethods(sub.fType, element.fType, methods)) continue; // Remember derivation methods and blocks from the types dMethod = methods.dMethod; bMethod = methods.bMethod;
*** 305,315 **** } } // Convert to an array OneSubGroup[] ret = new OneSubGroup[newGroup.size()]; for (int i = newGroup.size()-1; i >= 0; i--) { ! ret[i] = (OneSubGroup)newGroup.get(i); } // Store the potential sub group fSubGroupsB.put(element, ret); return ret; --- 305,315 ---- } } // Convert to an array OneSubGroup[] ret = new OneSubGroup[newGroup.size()]; for (int i = newGroup.size()-1; i >= 0; i--) { ! ret[i] = newGroup.get(i); } // Store the potential sub group fSubGroupsB.put(element, ret); return ret;
< prev index next >