mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
7176907: additional warnings cleanup in java.util, java.util.regexp, java.util.zip
Reviewed-by: forax, khazra, smarks
This commit is contained in:
parent
2a72b6a15f
commit
9a2ec820dc
3 changed files with 8 additions and 1 deletions
|
@ -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) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@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.
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue