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:
Mark Wielaard
2006-01-17 18:09:40 +00:00
parent bcb36c3e02
commit 2127637945
444 changed files with 75778 additions and 30731 deletions
@@ -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;