< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved. */ /* * 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) 2006, 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.
*** 455,465 **** if (type == XSParticleDecl.PARTICLE_MODELGROUP) { XSModelGroupImpl group = (XSModelGroupImpl) particle.fValue; if (minOccurs != 1 || maxOccurs != 1) { if (group.fParticleCount == 1) { ! XSParticleDecl particle2 = (XSParticleDecl) group.fParticles[0]; short type2 = particle2.fType; return ((type2 == XSParticleDecl.PARTICLE_ELEMENT || type2 == XSParticleDecl.PARTICLE_WILDCARD) && particle2.fMinOccurs == 1 && particle2.fMaxOccurs == 1); --- 456,466 ---- if (type == XSParticleDecl.PARTICLE_MODELGROUP) { XSModelGroupImpl group = (XSModelGroupImpl) particle.fValue; if (minOccurs != 1 || maxOccurs != 1) { if (group.fParticleCount == 1) { ! XSParticleDecl particle2 = group.fParticles[0]; short type2 = particle2.fType; return ((type2 == XSParticleDecl.PARTICLE_ELEMENT || type2 == XSParticleDecl.PARTICLE_WILDCARD) && particle2.fMinOccurs == 1 && particle2.fMaxOccurs == 1);
< prev index next >