提交 bfb8b3c3 编写于 作者: S smarks

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

Reviewed-by: forax, khazra, smarks
Contributed-by: NMani Sarkar <sadhak001@gmail.com>
上级 4e9bfcbd
...@@ -44,6 +44,9 @@ import java.io.IOException; ...@@ -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.
......
...@@ -2026,6 +2026,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) { ...@@ -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) { ...@@ -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) { ...@@ -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) { ...@@ -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.
......
...@@ -252,7 +252,7 @@ class GZIPInputStream extends InflaterInputStream { ...@@ -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;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册