HBASE-19539 Removed unnecessary semicolons in hbase-common

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

View File

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

View File

@ -24,5 +24,5 @@ import org.apache.yetus.audience.InterfaceAudience;
*/ */
@InterfaceAudience.Public @InterfaceAudience.Public
public enum ProcedureState { 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 * Decoder/CellScanner runs off the end of the cell block. Do this rather than require the user
* call close explicitly. * call close explicitly.
*/ */
interface Decoder extends CellScanner {}; interface Decoder extends CellScanner {}
Decoder getDecoder(InputStream is); Decoder getDecoder(InputStream is);
Decoder getDecoder(ByteBuff buf); Decoder getDecoder(ByteBuff buf);

View File

@ -94,7 +94,7 @@ public class TagCompressionContext {
while (pos < endOffset) { while (pos < endOffset) {
int tagLen = ByteBufferUtils.readAsInt(in, pos, Tag.TAG_LENGTH_SIZE); int tagLen = ByteBufferUtils.readAsInt(in, pos, Tag.TAG_LENGTH_SIZE);
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; pos += tagLen;
} }
} }

View File

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

View File

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

View File

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

View File

@ -54,7 +54,7 @@ public class TestCellUtil {
public CellScanner cellScanner() { public CellScanner cellScanner() {
return new TestCellScanner(this.cellsCount); return new TestCellScanner(this.cellsCount);
} }
}; }
/** /**
* CellScanner used in test. * CellScanner used in test.
@ -203,7 +203,7 @@ public class TestCellUtil {
public DataType getType() { public DataType getType() {
return PrivateCellUtil.toDataType(getTypeByte()); return PrivateCellUtil.toDataType(getTypeByte());
} }
}; }
/** /**
* Was overflowing if 100k or so lists of cellscanners to return. * 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() }); method.invoke(urlClassLoader, new Object[] { jarFile.toURI().toURL() });
return jarFile.getAbsolutePath(); return jarFile.getAbsolutePath();
} }
}; }

View File

@ -36,9 +36,8 @@ public class KeyProviderForTesting implements KeyProvider {
public Key[] getKeys(String[] aliases) { public Key[] getKeys(String[] aliases) {
Key[] result = new Key[aliases.length]; Key[] result = new Key[aliases.length];
for (int i = 0; i < aliases.length; i++) { 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; return result;
} }
} }