DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
* java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK. * java/net/natPlainDatagramSocketImpl.cc (bind): ditto. * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method is not final per JDK. * java/util/PropertyResourceBundle.java (handleGetObject): Method is public per JDK. * java/util/zip/DataFormatException.java: Class extends Exception. * java/util/zip/Deflater.java (finalize): Method is protected per JDK. * java/util/zip/ZipEntry.java: Class implements ZipConstants. * java/util/zip/ZipInputStream.java: ditto. (closeEntry): Changed method name to match JDK spec. From-SVN: r27717
This commit is contained in:
@@ -25,7 +25,7 @@ import java.io.FileDescriptor;
|
||||
|
||||
public abstract class DatagramSocketImpl implements SocketOptions
|
||||
{
|
||||
protected int localport;
|
||||
protected int localPort;
|
||||
protected FileDescriptor fd;
|
||||
|
||||
public DatagramSocketImpl()
|
||||
@@ -57,6 +57,6 @@ public abstract class DatagramSocketImpl implements SocketOptions
|
||||
|
||||
protected int getLocalPort()
|
||||
{
|
||||
return localport;
|
||||
return localPort;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,9 +113,9 @@ java::net::PlainDatagramSocketImpl::bind (jint lport,
|
||||
{
|
||||
socklen_t addrlen = sizeof(u);
|
||||
if (lport != 0)
|
||||
localport = lport;
|
||||
localPort = lport;
|
||||
else if (::getsockname (fnum, (sockaddr*) &u, &addrlen) == 0)
|
||||
localport = ntohs (u.address.sin_port);
|
||||
localPort = ntohs (u.address.sin_port);
|
||||
else
|
||||
goto error;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user