[Git][java-team/dom4j][master] 5 commits: Standards-Version updated to 4.6.2
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Fri Jan 5 16:32:50 GMT 2024
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / dom4j
Commits:
a8f0481c by Emmanuel Bourg at 2024-01-05T17:17:58+01:00
Standards-Version updated to 4.6.2
- - - - -
5f767aad by Emmanuel Bourg at 2024-01-05T17:18:35+01:00
New upstream version 2.1.4
- - - - -
ee2d3615 by Emmanuel Bourg at 2024-01-05T17:18:36+01:00
Update upstream source from tag 'upstream/2.1.4'
Update to upstream version '2.1.4'
with Debian dir 9b8e2ee84a5aee6123347faea903175876d40997
- - - - -
6dffcf2a by Emmanuel Bourg at 2024-01-05T17:29:06+01:00
Refreshed the patches
- - - - -
5f9b6da7 by Emmanuel Bourg at 2024-01-05T17:32:15+01:00
Upload to unstable
- - - - -
10 changed files:
- .gitignore
- LICENSE
- build.gradle
- debian/changelog
- debian/control
- debian/patches/07_xpp2-compatibility.patch
- debian/patches/08_disable-jacoco.patch
- debian/patches/09_disable-publish-plugin.patch
- src/main/java/org/dom4j/io/XMLWriter.java
- src/main/java/org/dom4j/xpp/ProxyXmlStartTag.java
Changes:
=====================================
.gitignore
=====================================
@@ -1,5 +1,7 @@
/build
+/target
/out
/.gradle
-/gradle.properties
-/*.gpg
+/.classpath
+/.project
+/.settings/
=====================================
LICENSE
=====================================
@@ -1,4 +1,4 @@
-Copyright 2001-2016 (C) MetaStuff, Ltd. and DOM4J contributors. All Rights Reserved.
+Copyright 2001-2023 © MetaStuff, Ltd. and DOM4J contributors. All Rights Reserved.
Redistribution and use of this software and associated documentation
("Software"), with or without modification, are permitted provided
@@ -7,24 +7,24 @@ that the following conditions are met:
1. Redistributions of source code must retain copyright
statements and notices. Redistributions must also contain a
copy of this document.
-
+
2. Redistributions in binary form must reproduce the
above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other
materials provided with the distribution.
-
+
3. The name "DOM4J" must not be used to endorse or promote
products derived from this Software without prior written
permission of MetaStuff, Ltd. For written permission,
please contact dom4j-info at metastuff.com.
-
+
4. Products derived from this Software may not be called "DOM4J"
nor may "DOM4J" appear in their names without prior written
permission of MetaStuff, Ltd. DOM4J is a registered
trademark of MetaStuff, Ltd.
-
+
5. Due credit should be given to the DOM4J Project - https://dom4j.github.io/
-
+
THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
=====================================
build.gradle
=====================================
@@ -8,7 +8,11 @@ archivesBaseName = 'dom4j'
sourceCompatibility = 1.8
-tasks.withType(JavaCompile) + tasks.withType(Javadoc) {
+tasks.withType(JavaCompile) {
+ options.encoding = 'UTF-8'
+}
+
+tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
options.charSet = options.encoding
}
@@ -24,7 +28,7 @@ dependencies {
'javax.xml.stream:stax-api:1.0-2',
'net.java.dev.msv:xsdlib:2013.6.1',
'javax.xml.bind:jaxb-api:2.2.12',
- 'pull-parser:pull-parser:2',
+ 'pull-parser:pull-parser:2.1.10',
'xpp3:xpp3:1.1.4c',
)
@@ -72,7 +76,7 @@ publishing {
url = 'http://dom4j.github.io/'
licenses {
license {
- name = 'BSD 3-clause New License'
+ name = 'Plexus'
url = 'https://github.com/dom4j/dom4j/blob/master/LICENSE'
}
}
@@ -99,6 +103,12 @@ publishing {
}
}
+jar {
+ manifest {
+ attributes('Automatic-Module-Name': 'org.dom4j')
+ }
+}
+
test {
useTestNG()
}
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+dom4j (2.1.4-1) unstable; urgency=medium
+
+ * New upstream release
+ - Refreshed the patches
+ * Standards-Version updated to 4.6.2
+
+ -- Emmanuel Bourg <ebourg at apache.org> Fri, 05 Jan 2024 17:32:09 +0100
+
dom4j (2.1.3-2) unstable; urgency=medium
* Removed the -java-doc package (Closes: #1011550)
=====================================
debian/control
=====================================
@@ -19,7 +19,7 @@ Build-Depends:
libxpp2-java (>= 2.1.10-8~),
libxpp3-java,
maven-repo-helper
-Standards-Version: 4.6.1
+Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/java-team/dom4j
Vcs-Git: https://salsa.debian.org/java-team/dom4j.git
Homepage: https://dom4j.github.io
=====================================
debian/patches/07_xpp2-compatibility.patch
=====================================
@@ -2,19 +2,13 @@ Description: Fixes the compatibility with the version of xpp2 in Debian
Origin: backport, https://github.com/dom4j/dom4j/pull/22/files
--- a/src/main/java/org/dom4j/xpp/ProxyXmlStartTag.java
+++ b/src/main/java/org/dom4j/xpp/ProxyXmlStartTag.java
-@@ -211,7 +211,7 @@
- * @throws XmlPullParserException
- * DOCUMENT ME!
- */
-- public void removeAtttributes() throws XmlPullParserException {
-+ public void removeAttributes() throws XmlPullParserException {
- if (element != null) {
- element.setAttributes(new ArrayList());
-
-@@ -221,6 +221,33 @@
+@@ -205,14 +205,31 @@
}
}
+- @Override
+- public boolean removeAttributeByName(String s, String s1) throws XmlPullParserException {
+- throw new UnsupportedOperationException();
+ public boolean removeAttributeByName(String namespaceURI, String localName) throws XmlPullParserException {
+ if (element != null) {
+ for (Iterator<Attribute> iter = element.attributeIterator(); iter.hasNext();) {
@@ -27,8 +21,11 @@ Origin: backport, https://github.com/dom4j/dom4j/pull/22/files
+ }
+ }
+ return false;
-+ }
-+
+ }
+
+- @Override
+- public boolean removeAttributeByRawName(String s) throws XmlPullParserException {
+- throw new UnsupportedOperationException();
+ public boolean removeAttributeByRawName(String rawName) throws XmlPullParserException {
+ if (element != null) {
+ for (Iterator<Attribute> iter = element.attributeIterator(); iter.hasNext();) {
@@ -40,8 +37,6 @@ Origin: backport, https://github.com/dom4j/dom4j/pull/22/files
+ }
+ }
+ return false;
-+ }
-+
- public String getLocalName() {
- return element.getName();
}
+
+ /**
=====================================
debian/patches/08_disable-jacoco.patch
=====================================
@@ -9,7 +9,7 @@ Forwarded: not-needed
apply plugin: 'maven-publish'
apply plugin: 'signing'
-@@ -103,14 +102,6 @@
+@@ -113,14 +112,6 @@
useTestNG()
}
=====================================
debian/patches/09_disable-publish-plugin.patch
=====================================
@@ -9,82 +9,35 @@ Forwarded: not-needed
apply plugin: 'signing'
group = 'org.dom4j'
-@@ -52,78 +51,10 @@
+@@ -56,6 +55,7 @@
from javadoc.destinationDir
}
--publishing {
-- publications {
-- mavenJava(MavenPublication) {
-- from components.java
--
-- artifact sourcesJar {
-- classifier "sources"
-- }
--
-- artifact javadocJar {
-- classifier "javadoc"
-- }
--
-- pom {
-- name = 'dom4j'
-- description = 'flexible XML framework for Java'
-- url = 'http://dom4j.github.io/'
-- licenses {
-- license {
-- name = 'BSD 3-clause New License'
-- url = 'https://github.com/dom4j/dom4j/blob/master/LICENSE'
-- }
-- }
-- developers {
-- developer {
-- name = 'Filip Jirsák'
-- email = 'filip at jirsak.org'
-- url = 'https://github.com/FilipJirsak'
-- }
-- }
-- scm {
-- connection = 'scm:git:git at github.com:dom4j/dom4j.git'
-- developerConnection = 'scm:git:git at github.com:dom4j/dom4j.git'
-- url = 'git at github.com:dom4j/dom4j.git'
-- }
--
-- withXml {
-- asNode().dependencies.dependency.findAll { xmlDep ->
-- xmlDep.appendNode('optional').value = 'true'
-- }
-- }
-- }
-- }
-- }
--}
--
- test {
++/*
+ publishing {
+ publications {
+ mavenJava(MavenPublication) {
+@@ -101,6 +101,7 @@
+ }
+ }
+ }
++*/
+
+ jar {
+ manifest {
+@@ -112,6 +113,7 @@
useTestNG()
}
--if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
-- publishing {
-- repositories {
-- maven {
-- url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
-- authentication {
-- basic(BasicAuthentication)
-- }
-- credentials {
-- username = ossrhUsername
-- password = ossrhPassword
-- }
-- }
--
--// mavenSnapshot{
--// url "https://oss.sonatype.org/content/repositories/snapshots/"
--// authentication(userName: ossrhUsername, password: ossrhPassword)
--// }
-- }
-- }
--}
--
++/*
+ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
+ publishing {
+ repositories {
+@@ -133,6 +135,7 @@
+ }
+ }
+ }
++*/
+
if (project.hasProperty('signing.keyId')) {
signing {
- sign publishing.publications.mavenJava
=====================================
src/main/java/org/dom4j/io/XMLWriter.java
=====================================
@@ -57,7 +57,7 @@ import static org.dom4j.util.StringUtils.startsWithWhitespace;
* such as to allow suppression of the XML declaration, the encoding declaration
* or whether empty documents are collapsed.
* </p>
- *
+ *
* <p>
* There are <code>write(...)</code> methods to print any of the standard
* DOM4J classes, including <code>Document</code> and <code>Element</code>,
@@ -66,7 +66,7 @@ import static org.dom4j.util.StringUtils.startsWithWhitespace;
* preferred character encoding to be ignored. If you use encodings other than
* UTF8, we recommend using the method that takes an OutputStream instead.
* </p>
- *
+ *
* @author <a href="mailto:jstrachan at apache.org">James Strachan </a>
* @author Joseph Bowbeer
* @version $Revision: 1.83 $
@@ -203,7 +203,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* DOCUMENT ME!
- *
+ *
* @return true if text thats output should be escaped. This is enabled by
* default. It could be disabled if the output format is textual,
* like in XSLT where we can have xml, html or text output.
@@ -216,7 +216,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* Sets whether text output should be escaped or not. This is enabled by
* default. It could be disabled if the output format is textual, like in
* XSLT where we can have xml, html or text output.
- *
+ *
* @param escapeText
* DOCUMENT ME!
*/
@@ -228,7 +228,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* Set the initial indentation level. This can be used to output a document
* (or, more likely, an element) starting at a given indent level, so it's
* not always flush against the left margin. Default: 0
- *
+ *
* @param indentLevel
* the number of indents to start with
*/
@@ -240,7 +240,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* Returns the maximum allowed character code that should be allowed
* unescaped which defaults to 127 in US-ASCII (7 bit) or 255 in ISO- (8
* bit).
- *
+ *
* @return DOCUMENT ME!
*/
public int getMaximumAllowedCharacter() {
@@ -257,7 +257,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* escape any characters (other than the special XML characters like <
* > &) If this is not explicitly set then it is defaulted from the
* encoding.
- *
+ *
* @param maximumAllowedCharacter
* The maximumAllowedCharacter to set
*/
@@ -267,7 +267,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Flushes the underlying Writer
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -277,7 +277,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Closes the underlying Writer
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -287,7 +287,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the new line text to the underlying Writer
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -297,10 +297,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link Attribute}.
- *
+ *
* @param attribute
* <code>Attribute</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -316,21 +316,21 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* <p>
* This will print the <code>Document</code> to the current Writer.
* </p>
- *
+ *
* <p>
* Warning: using your own Writer may cause the writer's preferred character
* encoding to be ignored. If you use encodings other than UTF8, we
* recommend using the method that takes an OutputStream instead.
* </p>
- *
+ *
* <p>
* Note: as with all Writers, you may need to flush() yours after this
* method returns.
* </p>
- *
+ *
* @param doc
* <code>Document</code> to format.
- *
+ *
* @throws IOException
* if there's any problem writing.
*/
@@ -361,10 +361,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* s, and its value, and all its content (child nodes) to the current
* Writer.
* </p>
- *
+ *
* @param element
* <code>Element</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -378,10 +378,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link CDATA}.
- *
+ *
* @param cdata
* <code>CDATA</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -395,10 +395,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link Comment}.
- *
+ *
* @param comment
* <code>Comment</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -412,10 +412,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link DocumentType}.
- *
+ *
* @param docType
* <code>DocumentType</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -429,10 +429,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link Entity}.
- *
+ *
* @param entity
* <code>Entity</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -446,10 +446,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link Namespace}.
- *
+ *
* @param namespace
* <code>Namespace</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -463,10 +463,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link ProcessingInstruction}.
- *
+ *
* @param processingInstruction
* <code>ProcessingInstruction</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -484,10 +484,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* Print out a {@link String}, Perfoms the necessary entity escaping and
* whitespace stripping.
* </p>
- *
+ *
* @param text
* is the text to output
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -501,10 +501,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link Text}.
- *
+ *
* @param text
* <code>Text</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -518,10 +518,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given {@link Node}.
- *
+ *
* @param node
* <code>Node</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -536,10 +536,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the given object which should be a String, a Node or a List of
* Nodes.
- *
+ *
* @param object
* is the object to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -564,10 +564,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* Writes the opening tag of an {@link Element}, including its {@link
* Attribute}s but without its content.
* </p>
- *
+ *
* @param element
* <code>Element</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -583,10 +583,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* <p>
* Writes the closing tag of an {@link Element}
* </p>
- *
+ *
* @param element
* <code>Element</code> to output.
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -979,10 +979,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Determines if element is a special case of XML elements where it contains
* an xml:space attribute of "preserve". If it does, then retain whitespace.
- *
+ *
* @param element
* DOCUMENT ME!
- *
+ *
* @return DOCUMENT ME!
*/
protected final boolean isElementSpacePreserved(Element element) {
@@ -1002,10 +1002,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* whitespace trimming occurs to avoid problems with multiple text nodes
* being created due to text content that spans parser buffers in a SAX
* parser.
- *
+ *
* @param element
* DOCUMENT ME!
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -1167,7 +1167,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the SAX namepsaces
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -1185,15 +1185,15 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the SAX namepsaces
- *
+ *
* @param prefix
* the prefix
* @param uri
* the namespace uri
- *
+ *
* @throws IOException DOCUMENT ME!
*/
- protected void writeNamespace(String prefix, String uri)
+ protected void writeNamespace(String prefix, String uri)
throws IOException {
if ((prefix != null) && (prefix.length() > 0)) {
writer.write(" xmlns:");
@@ -1274,10 +1274,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* This method is used to write out Nodes that contain text and still allow
* for xml:space to be handled properly.
- *
+ *
* @param node
* DOCUMENT ME!
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -1435,10 +1435,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Writes the attributes of the given element
- *
+ *
* @param element
* DOCUMENT ME!
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -1482,26 +1482,24 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
writeNamespace(null, uri);
}
} else {
- char quote = format.getAttributeQuoteCharacter();
- writer.write(" ");
- writer.write(attribute.getQualifiedName());
- writer.write("=");
- writer.write(quote);
- writeEscapeAttributeEntities(attribute.getValue());
- writer.write(quote);
+ writeAttribute(attribute);
}
}
}
protected void writeAttribute(Attribute attribute) throws IOException {
+ writeAttribute(attribute.getQualifiedName(), attribute.getValue());
+ }
+
+ protected void writeAttribute(String qualifiedName, String value) throws IOException {
writer.write(" ");
- writer.write(attribute.getQualifiedName());
+ writer.write(qualifiedName);
writer.write("=");
char quote = format.getAttributeQuoteCharacter();
writer.write(quote);
- writeEscapeAttributeEntities(attribute.getValue());
+ writeEscapeAttributeEntities(value);
writer.write(quote);
lastOutputNodeType = Node.ATTRIBUTE_NODE;
@@ -1515,13 +1513,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
protected void writeAttribute(Attributes attributes, int index)
throws IOException {
- char quote = format.getAttributeQuoteCharacter();
- writer.write(" ");
- writer.write(attributes.getQName(index));
- writer.write("=");
- writer.write(quote);
- writeEscapeAttributeEntities(attributes.getValue(index));
- writer.write(quote);
+ writeAttribute(attributes.getQName(index), attributes.getValue(index));
}
protected void indent() throws IOException {
@@ -1538,7 +1530,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* <p>
* This will print a new line only if the newlines flag was set to true
* </p>
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -1550,14 +1542,14 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Get an OutputStreamWriter, use preferred encoding.
- *
+ *
* @param outStream
* DOCUMENT ME!
* @param encoding
* DOCUMENT ME!
- *
+ *
* @return DOCUMENT ME!
- *
+ *
* @throws UnsupportedEncodingException
* DOCUMENT ME!
*/
@@ -1571,7 +1563,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* This will write the declaration to the given Writer. Assumes XML version
* 1.0 since we don't directly know.
* </p>
- *
+ *
* @throws IOException
* DOCUMENT ME!
*/
@@ -1631,10 +1623,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* This will take the pre-defined entities in XML 1.0 and convert their
* character representation to the appropriate entity reference, suitable
* for XML attributes.
- *
+ *
* @param text
* DOCUMENT ME!
- *
+ *
* @return DOCUMENT ME!
*/
protected String escapeElementEntities(String text) {
@@ -1722,10 +1714,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* This will take the pre-defined entities in XML 1.0 and convert their
* character representation to the appropriate entity reference, suitable
* for XML attributes.
- *
+ *
* @param text
* DOCUMENT ME!
- *
+ *
* @return DOCUMENT ME!
*/
protected String escapeAttributeEntities(String text) {
@@ -1810,10 +1802,10 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
/**
* Should the given character be escaped. This depends on the encoding of
* the document.
- *
+ *
* @param codepoint Unicode codepoint.
* DOCUMENT ME!
- *
+ *
* @return boolean
*/
protected boolean shouldEncodeChar(int codepoint) {
@@ -1826,7 +1818,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* Returns the maximum allowed character code that should be allowed
* unescaped which defaults to 127 in US-ASCII (7 bit) or 255 in ISO- (8
* bit).
- *
+ *
* @return DOCUMENT ME!
*/
protected int defaultMaximumAllowedCharacter() {
@@ -1867,7 +1859,7 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* setTrimText, setNewLines, etc. Put in to support the HTMLWriter, in the
* way that it pushes the current newline/trim state onto a stack and
* overrides the state within preformatted tags.
- *
+ *
* @return DOCUMENT ME!
*/
protected OutputFormat getOutputFormat() {
@@ -1887,24 +1879,24 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* Redistribution and use of this software and associated documentation
* ("Software"), with or without modification, are permitted provided that the
* following conditions are met:
- *
+ *
* 1. Redistributions of source code must retain copyright statements and
* notices. Redistributions must also contain a copy of this document.
- *
+ *
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
- *
+ *
* 3. The name "DOM4J" must not be used to endorse or promote products derived
* from this Software without prior written permission of MetaStuff, Ltd. For
* written permission, please contact dom4j-info at metastuff.com.
- *
+ *
* 4. Products derived from this Software may not be called "DOM4J" nor may
* "DOM4J" appear in their names without prior written permission of MetaStuff,
* Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.
- *
+ *
* 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org
- *
+ *
* THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -1916,6 +1908,6 @@ public class XMLWriter extends XMLFilterImpl implements LexicalHandler {
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
- *
+ *
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
*/
=====================================
src/main/java/org/dom4j/xpp/ProxyXmlStartTag.java
=====================================
@@ -24,7 +24,7 @@ import org.gjt.xpp.XmlStartTag;
* <code>ProxyXmlStartTag</code> implements the XPP XmlSmartTag interface
* while creating a dom4j Element underneath.
* </p>
- *
+ *
* @author <a href="mailto:jstrachan at apache.org">James Strachan </a>
* @version $Revision: 1.8 $
*/
@@ -160,7 +160,7 @@ public class ProxyXmlStartTag implements XmlStartTag {
/**
* parameters modeled after SAX2 attribute approach
- *
+ *
* @param namespaceURI
* DOCUMENT ME!
* @param localName
@@ -169,7 +169,7 @@ public class ProxyXmlStartTag implements XmlStartTag {
* DOCUMENT ME!
* @param value
* DOCUMENT ME!
- *
+ *
* @throws XmlPullParserException
* DOCUMENT ME!
*/
@@ -205,13 +205,24 @@ public class ProxyXmlStartTag implements XmlStartTag {
}
}
+ @Override
+ public boolean removeAttributeByName(String s, String s1) throws XmlPullParserException {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public boolean removeAttributeByRawName(String s) throws XmlPullParserException {
+ throw new UnsupportedOperationException();
+ }
+
/**
* remove all atribute
- *
+ *
* @throws XmlPullParserException
* DOCUMENT ME!
*/
- public void removeAtttributes() throws XmlPullParserException {
+ @Override
+ public void removeAttributes() throws XmlPullParserException {
if (element != null) {
element.setAttributes(new ArrayList());
@@ -264,24 +275,24 @@ public class ProxyXmlStartTag implements XmlStartTag {
* Redistribution and use of this software and associated documentation
* ("Software"), with or without modification, are permitted provided that the
* following conditions are met:
- *
+ *
* 1. Redistributions of source code must retain copyright statements and
* notices. Redistributions must also contain a copy of this document.
- *
+ *
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
- *
+ *
* 3. The name "DOM4J" must not be used to endorse or promote products derived
* from this Software without prior written permission of MetaStuff, Ltd. For
* written permission, please contact dom4j-info at metastuff.com.
- *
+ *
* 4. Products derived from this Software may not be called "DOM4J" nor may
* "DOM4J" appear in their names without prior written permission of MetaStuff,
* Ltd. DOM4J is a registered trademark of MetaStuff, Ltd.
- *
+ *
* 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org
- *
+ *
* THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -293,6 +304,6 @@ public class ProxyXmlStartTag implements XmlStartTag {
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
- *
+ *
* Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
*/
View it on GitLab: https://salsa.debian.org/java-team/dom4j/-/compare/d76b1c0857cd56e4d43c1ffd3ed522bc6bfa387a...5f9b6da7225f517d20c7b8b75636740dfa56e004
--
View it on GitLab: https://salsa.debian.org/java-team/dom4j/-/compare/d76b1c0857cd56e4d43c1ffd3ed522bc6bfa387a...5f9b6da7225f517d20c7b8b75636740dfa56e004
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20240105/652cc8b8/attachment.htm>
More information about the pkg-java-commits
mailing list