< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToStream.java

Print this page

        

*** 1,8 **** /* * Copyright (c) 2006, 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) 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.
*** 1665,1675 **** else { startClean = accumDefaultEscape( m_writer, ! (char)ch, i, chars, end, fromTextNode, false); --- 1665,1675 ---- else { startClean = accumDefaultEscape( m_writer, ! ch, i, chars, end, fromTextNode, false);
*** 2737,2749 **** final StringBuilder sb = new StringBuilder(); for (int i = 0; i < len; i += 2) { // whitspace separated "{uri1}local1 {uri2}local2 ..." if (i != 0) sb.append(' '); ! final String uri = (String) URI_and_localNames.get(i); ! final String localName = ! (String) URI_and_localNames.get(i + 1); if (uri != null) { // If there is no URI don't put this in, just the localName then. sb.append('{'); sb.append(uri); sb.append('}'); --- 2737,2748 ---- final StringBuilder sb = new StringBuilder(); for (int i = 0; i < len; i += 2) { // whitspace separated "{uri1}local1 {uri2}local2 ..." if (i != 0) sb.append(' '); ! final String uri = URI_and_localNames.get(i); ! final String localName = URI_and_localNames.get(i + 1); if (uri != null) { // If there is no URI don't put this in, just the localName then. sb.append('{'); sb.append(uri); sb.append('}');
< prev index next >