AssertionError.java: Merge with classpath, fixes HTML.
2002-09-16 Michael Koch <konqueror@gmx.de> * java/lang/AssertionError.java: Merge with classpath, fixes HTML. * java/rmi/server/LogStream.java: Merge with classpath, fixes some constants. * java/net/server/RemoteServer.java: Merge with classpath, adds serialVersionUID. * javax/naming/BinaryRefAddr.java: Merge with classpath, s/equal/equals/. * javax/naming/NamingException.java: Merge with classpath, fixed typo. * javax/naming/RefAddr.java: Merge with classpath, s/equal/equals/. * java/awt/Toolkit.java: s/gnu.java.awt.peer.gtk.GtkToolkit/gnu.awt.gtk.GtkToolkit/ and typo fixed. From-SVN: r57187
This commit is contained in:
parent
b423e6fe61
commit
cf0f53eb6e
8 changed files with 46 additions and 26 deletions
|
@ -1,3 +1,21 @@
|
||||||
|
2002-09-16 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* java/lang/AssertionError.java:
|
||||||
|
Merge with classpath, fixes HTML.
|
||||||
|
* java/rmi/server/LogStream.java:
|
||||||
|
Merge with classpath, fixes some constants.
|
||||||
|
* java/net/server/RemoteServer.java:
|
||||||
|
Merge with classpath, adds serialVersionUID.
|
||||||
|
* javax/naming/BinaryRefAddr.java:
|
||||||
|
Merge with classpath, s/equal/equals/.
|
||||||
|
* javax/naming/NamingException.java:
|
||||||
|
Merge with classpath, fixed typo.
|
||||||
|
* javax/naming/RefAddr.java:
|
||||||
|
Merge with classpath, s/equal/equals/.
|
||||||
|
* java/awt/Toolkit.java:
|
||||||
|
s/gnu.java.awt.peer.gtk.GtkToolkit/gnu.awt.gtk.GtkToolkit/
|
||||||
|
and typo fixed.
|
||||||
|
|
||||||
2002-09-15 Adam Megacz <adam@xwt.org>
|
2002-09-15 Adam Megacz <adam@xwt.org>
|
||||||
|
|
||||||
* java/net/natPlainSocketImpl.cc: #ifdef-shielded socket timeouts,
|
* java/net/natPlainSocketImpl.cc: #ifdef-shielded socket timeouts,
|
||||||
|
@ -15,8 +33,8 @@
|
||||||
* java/net/DatagramPacket.java (DatagramPacket):
|
* java/net/DatagramPacket.java (DatagramPacket):
|
||||||
Added linebreak for 80 chars per line.
|
Added linebreak for 80 chars per line.
|
||||||
* java/net/JarURLConection.java
|
* java/net/JarURLConection.java
|
||||||
(getInputStream, getJarEntry): Likewise.
|
(getInputStreami, getJarEntry): Likewise.
|
||||||
* java/net/SocketPermission.java
|
* java/net/SocketPErmission.java
|
||||||
(SocketPermission class docu, implies): Likewise.
|
(SocketPermission class docu, implies): Likewise.
|
||||||
* java/net/URLClassLoader.java (findResources): Likewise.
|
* java/net/URLClassLoader.java (findResources): Likewise.
|
||||||
* java/net/URLConnection.java: Reindendet remark for 80 chars per line
|
* java/net/URLConnection.java: Reindendet remark for 80 chars per line
|
||||||
|
|
|
@ -96,11 +96,11 @@ public abstract class Toolkit
|
||||||
{
|
{
|
||||||
/** The default toolkit name. */
|
/** The default toolkit name. */
|
||||||
private static String default_toolkit_name
|
private static String default_toolkit_name
|
||||||
= "gnu.java.awt.peer.gtk.GtkToolkit";
|
= "gnu.awt.gtk.GtkToolkit";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The toolkit in use. Once we load it, we don't ever change it
|
* The toolkit in use. Once we load it, we don't ever change it
|
||||||
* if the awt.toolkit propert is set.
|
* if the awt.toolkit property is set.
|
||||||
*/
|
*/
|
||||||
private static Toolkit toolkit;
|
private static Toolkit toolkit;
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ package java.lang;
|
||||||
* An assertion error normally occurs as a result of the <code>assert</code>
|
* An assertion error normally occurs as a result of the <code>assert</code>
|
||||||
* statement added in JDK 1.4, to indicate that an assertion failed. There
|
* statement added in JDK 1.4, to indicate that an assertion failed. There
|
||||||
* are enough constructors to ensure that
|
* are enough constructors to ensure that
|
||||||
* <code>new AssertionError(<em>expression</em)</code> will work for all
|
* <code>new AssertionError(<em>expression</em>)</code> will work for all
|
||||||
* espressions, regardless of type, as if the error message were given by
|
* espressions, regardless of type, as if the error message were given by
|
||||||
* the string <code>"" + <em>expression</em></code>. This extends Error,
|
* the string <code>"" + <em>expression</em></code>. This extends Error,
|
||||||
* because you usually do not want to inadvertently trap an assertion failure.
|
* because you usually do not want to inadvertently trap an assertion failure.
|
||||||
|
|
|
@ -45,8 +45,8 @@ public class LogStream
|
||||||
extends PrintStream {
|
extends PrintStream {
|
||||||
|
|
||||||
public static final int SILENT = 0;
|
public static final int SILENT = 0;
|
||||||
public static final int BRIEF = 1;
|
public static final int BRIEF = 10;
|
||||||
public static final int VERBOSE = 2;
|
public static final int VERBOSE = 20;
|
||||||
|
|
||||||
private static PrintStream defStream;
|
private static PrintStream defStream;
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,8 @@ import java.io.PrintStream;
|
||||||
public abstract class RemoteServer
|
public abstract class RemoteServer
|
||||||
extends RemoteObject {
|
extends RemoteObject {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -4100238210092549637L;
|
||||||
|
|
||||||
protected RemoteServer() {
|
protected RemoteServer() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,17 +97,17 @@ public class BinaryRefAddr extends RefAddr
|
||||||
* the addrType is the same as this addrType and the bytes of the
|
* the addrType is the same as this addrType and the bytes of the
|
||||||
* content are the same.
|
* content are the same.
|
||||||
*/
|
*/
|
||||||
public boolean equals (Object o)
|
public boolean equal(Object o)
|
||||||
{
|
{
|
||||||
if (o instanceof BinaryRefAddr)
|
if (o instanceof BinaryRefAddr)
|
||||||
{
|
{
|
||||||
BinaryRefAddr refAddr = (BinaryRefAddr) o;
|
BinaryRefAddr refAddr = (BinaryRefAddr) o;
|
||||||
if (this.getType().equals(refAddr.getType()))
|
if (this.getType().equals(refAddr.getType()))
|
||||||
{
|
{
|
||||||
byte[] c1 = (byte[]) this.getContent();
|
byte[] c1 = (byte[]) this.getContent();
|
||||||
byte[] c2 = (byte[]) refAddr.getContent();
|
byte[] c2 = (byte[]) refAddr.getContent();
|
||||||
return Arrays.equals(c1, c2);
|
return Arrays.equals(c1, c2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ import java.io.PrintWriter;
|
||||||
* <code>NamingException</code>), the part of the <code>Name</code> that
|
* <code>NamingException</code>), the part of the <code>Name</code> that
|
||||||
* could be resolved (including the <code>Object</code> it resolved to)
|
* could be resolved (including the <code>Object</code> it resolved to)
|
||||||
* and the part of the <code>Name</code> that could not be resolved when
|
* and the part of the <code>Name</code> that could not be resolved when
|
||||||
* the exception occurred.
|
* the exception occured.
|
||||||
*
|
*
|
||||||
* @since 1.3
|
* @since 1.3
|
||||||
* @author Anthony Green (green@redhat.com)
|
* @author Anthony Green (green@redhat.com)
|
||||||
|
|
|
@ -71,9 +71,9 @@ public abstract class RefAddr implements Serializable
|
||||||
*/
|
*/
|
||||||
protected RefAddr(String addrType)
|
protected RefAddr(String addrType)
|
||||||
{
|
{
|
||||||
if (addrType == null)
|
if (addrType == null)
|
||||||
throw new NullPointerException("addrType cannot be null");
|
throw new NullPointerException("addrType cannot be null");
|
||||||
|
|
||||||
this.addrType = addrType;
|
this.addrType = addrType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,20 +98,20 @@ public abstract class RefAddr implements Serializable
|
||||||
* is the same as this addrType and the content is equals to the
|
* is the same as this addrType and the content is equals to the
|
||||||
* content of this object.
|
* content of this object.
|
||||||
*/
|
*/
|
||||||
public boolean equals (Object o)
|
public boolean equal(Object o)
|
||||||
{
|
{
|
||||||
if (o instanceof RefAddr)
|
if (o instanceof RefAddr)
|
||||||
{
|
{
|
||||||
RefAddr refAddr = (RefAddr) o;
|
RefAddr refAddr = (RefAddr) o;
|
||||||
if (this.getType().equals(refAddr.getType()))
|
if (this.getType().equals(refAddr.getType()))
|
||||||
{
|
{
|
||||||
Object c1 = this.getContent();
|
Object c1 = this.getContent();
|
||||||
Object c2 = refAddr.getContent();
|
Object c2 = refAddr.getContent();
|
||||||
if (c1 == null)
|
if (c1 == null)
|
||||||
return c2 == null;
|
return c2 == null;
|
||||||
else
|
else
|
||||||
return c1.equals(c2);
|
return c1.equals(c2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue