HBASE-19539 Removed unnecessary semicolons in hbase-common

This commit is contained in:
Jan Hentschel 2017-12-17 16:28:06 +01:00
parent f46a6d1637
commit 0f8ea39a5b
10 changed files with 16 additions and 19 deletions

View File

@ -90,7 +90,7 @@ public final class HConstants {
SUCCESS,
BAD_FAMILY,
SANITY_CHECK_FAILURE,
FAILURE;
FAILURE
}
/** long constant for zero */

View File

@ -24,5 +24,5 @@ import org.apache.yetus.audience.InterfaceAudience;
*/
@InterfaceAudience.Public
public enum ProcedureState {
INITIALIZING, RUNNABLE, WAITING, WAITING_TIMEOUT, ROLLEDBACK, SUCCESS, FAILED;
INITIALIZING, RUNNABLE, WAITING, WAITING_TIMEOUT, ROLLEDBACK, SUCCESS, FAILED
}

View File

@ -48,7 +48,7 @@ public interface Codec {
* Decoder/CellScanner runs off the end of the cell block. Do this rather than require the user
* call close explicitly.
*/
interface Decoder extends CellScanner {};
interface Decoder extends CellScanner {}
Decoder getDecoder(InputStream is);
Decoder getDecoder(ByteBuff buf);

View File

@ -94,7 +94,7 @@ public class TagCompressionContext {
while (pos < endOffset) {
int tagLen = ByteBufferUtils.readAsInt(in, pos, Tag.TAG_LENGTH_SIZE);
pos += Tag.TAG_LENGTH_SIZE;
Dictionary.write(out, in, pos, tagLen, tagDict);;
Dictionary.write(out, in, pos, tagLen, tagDict);
pos += tagLen;
}
}

View File

@ -79,7 +79,5 @@ public class CommonsCryptoAESDecryptor implements Decryptor {
@Override
public void reset() {
;
}
}

View File

@ -52,15 +52,15 @@ public class ClassFinder {
public interface ResourcePathFilter {
boolean isCandidatePath(String resourcePath, boolean isJar);
};
}
public interface FileNameFilter {
boolean isCandidateFile(String fileName, String absFilePath);
};
}
public interface ClassFilter {
boolean isCandidateClass(Class<?> c);
};
}
public static class Not implements ResourcePathFilter, FileNameFilter, ClassFilter {
private ResourcePathFilter resourcePathFilter;
@ -301,5 +301,5 @@ public class ClassFinder {
&& (null == nameFilter
|| nameFilter.isCandidateFile(file.getName(), file.getAbsolutePath())));
}
};
};
}
}

View File

@ -64,7 +64,7 @@ public class ClassTestFinder extends ClassFinder {
public boolean isCandidatePath(String resourcePath, boolean isJar) {
return !hadoopCompactRe.matcher(resourcePath).find();
}
};
}
/*
* A class is considered as a test class if:
@ -116,5 +116,5 @@ public class ClassTestFinder extends ClassFinder {
}
return false;
}
};
};
}
}

View File

@ -54,7 +54,7 @@ public class TestCellUtil {
public CellScanner cellScanner() {
return new TestCellScanner(this.cellsCount);
}
};
}
/**
* CellScanner used in test.
@ -203,7 +203,7 @@ public class TestCellUtil {
public DataType getType() {
return PrivateCellUtil.toDataType(getTypeByte());
}
};
}
/**
* Was overflowing if 100k or so lists of cellscanners to return.

View File

@ -419,4 +419,4 @@ public class TestClassFinder {
method.invoke(urlClassLoader, new Object[] { jarFile.toURI().toURL() });
return jarFile.getAbsolutePath();
}
};
}

View File

@ -36,9 +36,8 @@ public class KeyProviderForTesting implements KeyProvider {
public Key[] getKeys(String[] aliases) {
Key[] result = new Key[aliases.length];
for (int i = 0; i < aliases.length; i++) {
result[i] = new SecretKeySpec(Encryption.hash128(aliases[i]), "AES");;
result[i] = new SecretKeySpec(Encryption.hash128(aliases[i]), "AES");
}
return result;
}
}