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:
@@ -26,7 +26,7 @@ import java.io.*;
|
||||
// we probably should. FIXME.
|
||||
|
||||
|
||||
public class ZipInputStream extends InflaterInputStream
|
||||
public class ZipInputStream extends InflaterInputStream implements ZipConstants
|
||||
{
|
||||
public ZipInputStream (InputStream in)
|
||||
{
|
||||
@@ -36,7 +36,7 @@ public class ZipInputStream extends InflaterInputStream
|
||||
public ZipEntry getNextEntry () throws IOException
|
||||
{
|
||||
if (current != null)
|
||||
closeZipEntry();
|
||||
closeEntry();
|
||||
if (in.read() != 'P'
|
||||
|| in.read() != 'K')
|
||||
return null;
|
||||
@@ -184,7 +184,7 @@ public class ZipInputStream extends InflaterInputStream
|
||||
+ ((byte1 & 0xFF) << 8) + (byte0 & 0xFF);
|
||||
}
|
||||
|
||||
public void closeZipEntry () throws IOException
|
||||
public void closeEntry () throws IOException
|
||||
{
|
||||
if (current != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user