< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/ws/model/ParameterImpl.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 99,109 **** return getOwner().getXMLBridge(typeInfo); } public XMLBridge getInlinedRepeatedElementBridge() { TypeInfo itemType = getItemType(); ! if (itemType != null) { XMLBridge xb = getOwner().getXMLBridge(itemType); if (xb != null) return new RepeatedElementBridge(typeInfo, xb); } return null; } --- 99,109 ---- return getOwner().getXMLBridge(typeInfo); } public XMLBridge getInlinedRepeatedElementBridge() { TypeInfo itemType = getItemType(); ! if (itemType != null && itemType.getWrapperType() == null) { XMLBridge xb = getOwner().getXMLBridge(itemType); if (xb != null) return new RepeatedElementBridge(typeInfo, xb); } return null; }
*** 253,260 **** this.partName = partName; } void fillTypes(List<TypeInfo> types) { TypeInfo itemType = getItemType(); ! types.add((itemType != null) ? itemType : getTypeInfo()); } } --- 253,265 ---- this.partName = partName; } void fillTypes(List<TypeInfo> types) { TypeInfo itemType = getItemType(); ! if (itemType != null) { ! types.add(itemType); ! if (itemType.getWrapperType() != null) types.add(getTypeInfo()); ! } else { ! types.add(getTypeInfo()); ! } } }
< prev index next >