Imported GNU Classpath 0.90

Imported GNU Classpath 0.90
       * scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
       * gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
       * java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
       * java/lang/Math.java: New override file.
       * java/lang/Character.java: Merged from Classpath.
       (start, end): Now 'int's.
       (canonicalName): New field.
       (CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
       (UnicodeBlock): Added argument.
       (of): New overload.
       (forName): New method.
       Updated unicode blocks.
       (sets): Updated.
       * sources.am: Regenerated.
       * Makefile.in: Likewise.

From-SVN: r111942
This commit is contained in:
Mark Wielaard 2006-03-10 21:46:48 +00:00
parent 27079765d0
commit 8aa540d2f7
1367 changed files with 188789 additions and 22762 deletions

View file

@ -57,8 +57,7 @@ public class HTML
/**
* Represents a HTML attribute.
*/
public static class Attribute
implements Serializable
public static final class Attribute
{
/**
* The action attribute
@ -464,49 +463,20 @@ public class HTML
* The width attribute
*/
public static final Attribute WIDTH = new Attribute("width");
/**
* The attribute name.
*/
private final String name;
/**
* Creates the attribute with the given name.
*/
protected Attribute(String a_name)
private Attribute(String a_name)
{
name = a_name;
}
/**
* Calls compareTo on the tag names (Strings)
*/
public int compareTo(Object other)
{
return name.compareTo(((Attribute) other).name);
}
/**
* The attributes are equal if the names are equal
* (ignoring case)
*/
public boolean equals(Object other)
{
if (other == this)
return true;
if (!(other instanceof Attribute))
return false;
Attribute that = (Attribute) other;
return that.name.equalsIgnoreCase(name);
}
/**
* Returns the hash code which corresponds to the string for this tag.
*/
public int hashCode()
{
return name == null ? 0 : name.hashCode();
}
/**
* Returns the attribute name. The names of the built-in attributes
* are always returned in lowercase.
@ -559,7 +529,6 @@ public class HTML
* Represents a HTML tag.
*/
public static class Tag
implements Comparable, Serializable
{
/**
* The <a> tag
@ -1046,42 +1015,6 @@ public class HTML
return (flags & BREAKS) != 0;
}
/**
* Calls compareTo on the tag names (Strings)
*/
public int compareTo(Object other)
{
return name.compareTo(((Tag) other).name);
}
/**
* The tags are equal if the names are equal (ignoring case).
*/
public boolean equals(Object other)
{
if (other == this)
{
return true;
}
if (!(other instanceof Tag))
{
return false;
}
Tag that = (Tag) other;
return that.name.equalsIgnoreCase(name);
}
/**
* Returns the hash code which corresponds to the string for this tag.
*/
public int hashCode()
{
return name == null ? 0 : name.hashCode();
}
/**
* Returns the tag name. The names of the built-in tags are always
* returned in lowercase.