Imported GNU Classpath 0.20
Imported GNU Classpath 0.20
* Makefile.am (AM_CPPFLAGS): Add classpath/include.
* java/nio/charset/spi/CharsetProvider.java: New override file.
* java/security/Security.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Likewise.
From-SVN: r109831
This commit is contained in:
@@ -1313,6 +1313,31 @@ public class DomDocument
|
||||
return config;
|
||||
}
|
||||
|
||||
public boolean isEqualNode(Node arg)
|
||||
{
|
||||
if (!super.isEqualNode(arg))
|
||||
return false;
|
||||
Document d = (Document) arg;
|
||||
String dversion = d.getXmlVersion();
|
||||
if (dversion == null || !dversion.equals(version))
|
||||
return false;
|
||||
boolean dstandalone = d.getXmlStandalone();
|
||||
if (dstandalone != standalone)
|
||||
return false;
|
||||
String dencoding = d.getXmlEncoding();
|
||||
if (dencoding == null || dencoding.equalsIgnoreCase("UTF-8"))
|
||||
{
|
||||
if (encoding != null && !encoding.equalsIgnoreCase("UTF-8"))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!dencoding.equals(encoding))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void normalizeDocument()
|
||||
{
|
||||
boolean save = building;
|
||||
|
||||
Reference in New Issue
Block a user