src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/impl/DetailImpl.java

changeset 1460
c946a5cc042f
parent 1341
e5cc521294d8
child 1435
a90b319bae7a
     1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/impl/DetailImpl.java	Tue Jan 03 08:52:15 2017 -0800
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/soap/impl/DetailImpl.java	Thu Jan 12 00:25:07 2017 +0300
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -47,13 +47,13 @@
    1.11      public DetailEntry addDetailEntry(Name name) throws SOAPException {
    1.12          DetailEntry entry = createDetailEntry(name);
    1.13          addNode(entry);
    1.14 -        return (DetailEntry) circumventBug5034339(entry);
    1.15 +        return entry;
    1.16      }
    1.17  
    1.18      public DetailEntry addDetailEntry(QName qname) throws SOAPException {
    1.19          DetailEntry entry = createDetailEntry(qname);
    1.20          addNode(entry);
    1.21 -        return (DetailEntry) circumventBug5034339(entry);
    1.22 +        return entry;
    1.23      }
    1.24  
    1.25      protected SOAPElement addElement(Name name) throws SOAPException {
    1.26 @@ -119,28 +119,4 @@
    1.27         return true;
    1.28     }
    1.29  
    1.30 -    //overriding this method since the only two uses of this method
    1.31 -    // are in ElementImpl and DetailImpl
    1.32 -    //whereas the original base impl does the correct job for calls to it inside ElementImpl
    1.33 -    // But it would not work for DetailImpl.
    1.34 -    protected SOAPElement circumventBug5034339(SOAPElement element) {
    1.35 -
    1.36 -        Name elementName = element.getElementName();
    1.37 -        if (!isNamespaceQualified(elementName)) {
    1.38 -            String prefix = elementName.getPrefix();
    1.39 -            String defaultNamespace = getNamespaceURI(prefix);
    1.40 -            if (defaultNamespace != null) {
    1.41 -                Name newElementName =
    1.42 -                    NameImpl.create(
    1.43 -                        elementName.getLocalName(),
    1.44 -                        elementName.getPrefix(),
    1.45 -                        defaultNamespace);
    1.46 -                SOAPElement newElement = createDetailEntry(newElementName);
    1.47 -                replaceChild(newElement, element);
    1.48 -                return newElement;
    1.49 -            }
    1.50 -        }
    1.51 -        return element;
    1.52 -    }
    1.53 -
    1.54  }

mercurial