7176907: additional warnings cleanup in java.util, java.util.regexp, java.util.zip

Reviewed-by: forax, khazra, smarks
This commit is contained in:
Mani Sarkar 2012-07-02 14:11:44 -07:00 committed by Stuart Marks
parent 2a72b6a15f
commit 9a2ec820dc
3 changed files with 8 additions and 1 deletions

View file

@ -44,6 +44,9 @@ import java.io.IOException;
*/ */
public class InvalidPropertiesFormatException extends IOException { public class InvalidPropertiesFormatException extends IOException {
private static final long serialVersionUID = 7763056076009360219L;
/** /**
* Constructs an InvalidPropertiesFormatException with the specified * Constructs an InvalidPropertiesFormatException with the specified
* cause. * cause.

View file

@ -2026,6 +2026,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
} }
} }
@SuppressWarnings("fallthrough")
/** /**
* Parsing of sequences between alternations. * Parsing of sequences between alternations.
*/ */
@ -2140,6 +2141,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
return head; return head;
} }
@SuppressWarnings("fallthrough")
/** /**
* Parse and add a new Single or Slice. * Parse and add a new Single or Slice.
*/ */
@ -2978,6 +2980,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
return head; return head;
} }
@SuppressWarnings("fallthrough")
/** /**
* Parses inlined match flags and set them appropriately. * Parses inlined match flags and set them appropriately.
*/ */
@ -3019,6 +3022,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
} }
} }
@SuppressWarnings("fallthrough")
/** /**
* Parses the second part of inlined match flags and turns off * Parses the second part of inlined match flags and turns off
* flags appropriately. * flags appropriately.

View file

@ -252,7 +252,7 @@ class GZIPInputStream extends InflaterInputStream {
*/ */
private int readUShort(InputStream in) throws IOException { private int readUShort(InputStream in) throws IOException {
int b = readUByte(in); int b = readUByte(in);
return ((int)readUByte(in) << 8) | b; return (readUByte(in) << 8) | b;
} }
/* /*