diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java index 30e85454a72..3fa93cd8ea4 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/HConstants.java @@ -90,7 +90,7 @@ public final class HConstants { SUCCESS, BAD_FAMILY, SANITY_CHECK_FAILURE, - FAILURE; + FAILURE } /** long constant for zero */ diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/ProcedureState.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/ProcedureState.java index fba51815713..18bdf733435 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/ProcedureState.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/ProcedureState.java @@ -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 } diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/codec/Codec.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/codec/Codec.java index 01359eab2d6..2d6ac825c31 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/codec/Codec.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/codec/Codec.java @@ -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); diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/TagCompressionContext.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/TagCompressionContext.java index d646250c6ac..595434cbde2 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/TagCompressionContext.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/TagCompressionContext.java @@ -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; } } diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/aes/CommonsCryptoAESDecryptor.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/aes/CommonsCryptoAESDecryptor.java index bb2290f657a..9b58a69316a 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/aes/CommonsCryptoAESDecryptor.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/aes/CommonsCryptoAESDecryptor.java @@ -79,7 +79,5 @@ public class CommonsCryptoAESDecryptor implements Decryptor { @Override public void reset() { - ; } - } diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassFinder.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassFinder.java index db203b80b75..cc0e9691d7e 100644 --- a/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassFinder.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassFinder.java @@ -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()))); } - }; -}; + } +} diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassTestFinder.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassTestFinder.java index 9d5618b287e..85824e92f96 100644 --- a/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassTestFinder.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/ClassTestFinder.java @@ -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; } - }; -}; + } +} diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java index 4ab6bce85cf..aad0929a71a 100644 --- a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestCellUtil.java @@ -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. diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestClassFinder.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestClassFinder.java index 3a6d9350fc7..d37d7311616 100644 --- a/hbase-common/src/test/java/org/apache/hadoop/hbase/TestClassFinder.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/TestClassFinder.java @@ -419,4 +419,4 @@ public class TestClassFinder { method.invoke(urlClassLoader, new Object[] { jarFile.toURI().toURL() }); return jarFile.getAbsolutePath(); } -}; +} diff --git a/hbase-common/src/test/java/org/apache/hadoop/hbase/io/crypto/KeyProviderForTesting.java b/hbase-common/src/test/java/org/apache/hadoop/hbase/io/crypto/KeyProviderForTesting.java index 9b45d0996ad..7f0a060e979 100644 --- a/hbase-common/src/test/java/org/apache/hadoop/hbase/io/crypto/KeyProviderForTesting.java +++ b/hbase-common/src/test/java/org/apache/hadoop/hbase/io/crypto/KeyProviderForTesting.java @@ -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; } - }