< prev index next >

jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/pipe/AbstractSchemaValidationTube.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, 2017, 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
*** 481,491 **** */ private @Nullable Source createSameTnsPseudoSchema(String tns, Collection<String> docs, String pseudoSystemId) { assert docs.size() > 1; final StringBuilder sb = new StringBuilder("<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'"); ! if (!"".equals(tns)) { sb.append(" targetNamespace='").append(tns).append("'"); } sb.append(">\n"); for(String systemId : docs) { sb.append("<xsd:include schemaLocation='").append(systemId).append("'/>\n"); --- 481,491 ---- */ private @Nullable Source createSameTnsPseudoSchema(String tns, Collection<String> docs, String pseudoSystemId) { assert docs.size() > 1; final StringBuilder sb = new StringBuilder("<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'"); ! if (tns != null && !("".equals(tns)) && !("null".equals(tns))) { sb.append(" targetNamespace='").append(tns).append("'"); } sb.append(">\n"); for(String systemId : docs) { sb.append("<xsd:include schemaLocation='").append(systemId).append("'/>\n");
< prev index next >