Enable PMD rule UnnecessaryModifier and fix violations
This commit is contained in:
parent
b68f1587b2
commit
5f942cc458
6 changed files with 19 additions and 20 deletions
|
|
@ -37,7 +37,7 @@ public final class MixCoderDataInputStream extends DataInputStream {
|
|||
return lastValue;
|
||||
}
|
||||
|
||||
public final boolean decodeBit() throws IOException {
|
||||
public boolean decodeBit() throws IOException {
|
||||
fillBuffer();
|
||||
boolean value = ((b & 1) != 0);
|
||||
b >>>= 1;
|
||||
|
|
@ -45,7 +45,7 @@ public final class MixCoderDataInputStream extends DataInputStream {
|
|||
return value;
|
||||
}
|
||||
|
||||
public final int decodeVarBits2() throws IOException {
|
||||
public int decodeVarBits2() throws IOException {
|
||||
int range = 0;
|
||||
while (!decodeBit()) {
|
||||
range = 2 * range + 1;
|
||||
|
|
@ -58,7 +58,7 @@ public final class MixCoderDataInputStream extends DataInputStream {
|
|||
*
|
||||
* @see #encodeBounded
|
||||
*/
|
||||
public final int decodeBounded(int max) throws IOException {
|
||||
public int decodeBounded(int max) throws IOException {
|
||||
int value = 0;
|
||||
int im = 1; // integer mask
|
||||
while ((value | im) <= max) {
|
||||
|
|
@ -75,7 +75,7 @@ public final class MixCoderDataInputStream extends DataInputStream {
|
|||
* @see #encodeVarBits
|
||||
*/
|
||||
|
||||
public final int decodeVarBits() throws IOException {
|
||||
public int decodeVarBits() throws IOException {
|
||||
fillBuffer();
|
||||
int b12 = b & 0xfff;
|
||||
int len = vl_length[b12];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue