Skip to content

Commit 15c903b

Browse files
murtazahassan123HorizonNet
authored andcommitted
HBASE-22725 Remove all remaining Javadoc warnings
Signed-off-by: stack <stack@apache.org> Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
1 parent ef887e5 commit 15c903b

File tree

13 files changed

+55
-43
lines changed

13 files changed

+55
-43
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/client/BufferedMutatorParams.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public BufferedMutatorParams operationTimeout(final int operationTimeout) {
7676
}
7777

7878
/**
79-
* @deprecated Since 2.3.0, will be removed in 4.0.0. Use {@link #operationTimeout()}
79+
* @deprecated Since 2.3.0, will be removed in 4.0.0. Use {@link #operationTimeout(int)}
8080
*/
8181
@Deprecated
8282
public BufferedMutatorParams opertationTimeout(final int operationTimeout) {

hbase-client/src/main/java/org/apache/hadoop/hbase/client/SimpleRequestController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,10 @@ private void waitForRegion() throws InterruptedIOException {
431431
* regions. 3) check the total concurrent tasks. 4) check the concurrent
432432
* tasks for server.
433433
*
434-
* @param loc
435-
* @param heapSizeOfRow
436-
* @return either Include {@link ReturnCode} or Skip {@link ReturnCode}
434+
* @param loc the destination of data
435+
* @param heapSizeOfRow the data size
436+
* @return either Include {@link RequestController.ReturnCode} or skip
437+
* {@link RequestController.ReturnCode}
437438
*/
438439
@Override
439440
public ReturnCode canTakeOperation(HRegionLocation loc, long heapSizeOfRow) {

hbase-client/src/main/java/org/apache/hadoop/hbase/client/Table.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ default Result get(Get get) throws IOException {
176176
* @throws IOException if a remote or network exception occurs.
177177
* @since 0.90.0
178178
* @apiNote {@link #put(List)} runs pre-flight validations on the input list on client.
179-
* Currently {@link #get(List)} doesn't run any validations on the client-side, currently there
180-
* is no need, but this may change in the future. An
181-
* {@link IllegalArgumentException} will be thrown in this case.
179+
* Currently {@link #get(List)} doesn't run any validations on the client-side,
180+
* currently there is no need, but this may change in the future. An
181+
* {@link IllegalArgumentException} will be thrown in this case.
182182
*/
183183
default Result[] get(List<Get> gets) throws IOException {
184184
throw new NotImplementedException("Add an implementation!");
@@ -284,10 +284,10 @@ default void delete(Delete delete) throws IOException {
284284
* that have not be successfully applied.
285285
* @since 0.20.1
286286
* @apiNote In 3.0.0 version, the input list {@code deletes} will no longer be modified. Also,
287-
* {@link #put(List)} runs pre-flight validations on the input list on client. Currently
288-
* {@link #delete(List)} doesn't run validations on the client, there is no need currently,
289-
* but this may change in the future. An * {@link IllegalArgumentException} will be thrown
290-
* in this case.
287+
* {@link #put(List)} runs pre-flight validations on the input list on client. Currently
288+
* {@link #delete(List)} doesn't run validations on the client, there is no need
289+
* currently, but this may change in the future. An * {@link IllegalArgumentException}
290+
* will be thrown in this case.
291291
*/
292292
default void delete(List<Delete> deletes) throws IOException {
293293
throw new NotImplementedException("Add an implementation!");

hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/Batch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public abstract class Batch {
3939
* the implementations {@link Batch.Call#call(Object)} method will be invoked
4040
* with a proxy to each region's coprocessor {@link com.google.protobuf.Service} implementation.
4141
* </p>
42-
* @see org.apache.hadoop.hbase.client.coprocessor
42+
* @see org.apache.hadoop.hbase.client.coprocessor.Batch
4343
* @see org.apache.hadoop.hbase.client.Table#coprocessorService(byte[])
4444
* @see org.apache.hadoop.hbase.client.Table#coprocessorService(Class, byte[], byte[],
4545
* org.apache.hadoop.hbase.client.coprocessor.Batch.Call)

hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,10 @@ private Path getOutputPath(final SnapshotFileInfo inputInfo) throws IOException
267267
return new Path(outputArchive, path);
268268
}
269269

270+
@SuppressWarnings("checkstyle:linelength")
270271
/**
271272
* Used by TestExportSnapshot to test for retries when failures happen.
272-
* Failure is injected in {@link #copyFile(Context, SnapshotFileInfo, Path)}.
273+
* Failure is injected in {@link #copyFile(Mapper.Context, org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotFileInfo, Path)}.
273274
*/
274275
private void injectTestFailure(final Context context, final SnapshotFileInfo inputInfo)
275276
throws IOException {

hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,11 +1529,11 @@ static class RAMCache {
15291529
/**
15301530
* Defined the map as {@link ConcurrentHashMap} explicitly here, because in
15311531
* {@link RAMCache#get(BlockCacheKey)} and
1532-
* {@link RAMCache#putIfAbsent(BlockCacheKey, RAMQueueEntry)} , we need to guarantee the
1533-
* atomicity of map#computeIfPresent(key, func) and map#putIfAbsent(key, func). Besides, the
1534-
* func method can execute exactly once only when the key is present(or absent) and under the
1535-
* lock context. Otherwise, the reference count of block will be messed up. Notice that the
1536-
* {@link java.util.concurrent.ConcurrentSkipListMap} can not guarantee that.
1532+
* {@link RAMCache#putIfAbsent(BlockCacheKey, BucketCache.RAMQueueEntry)} , we need to
1533+
* guarantee the atomicity of map#computeIfPresent(key, func) and map#putIfAbsent(key, func).
1534+
* Besides, the func method can execute exactly once only when the key is present(or absent)
1535+
* and under the lock context. Otherwise, the reference count of block will be messed up.
1536+
* Notice that the {@link java.util.concurrent.ConcurrentSkipListMap} can not guarantee that.
15371537
*/
15381538
final ConcurrentHashMap<BlockCacheKey, RAMQueueEntry> delegate = new ConcurrentHashMap<>();
15391539

hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public AssignmentProcedureEvent(final RegionInfo regionInfo) {
9999

100100
/**
101101
* Updated whenever a call to {@link #setRegionLocation(ServerName)} or
102-
* {@link #setState(State, State...)}.
102+
* {@link #setState(RegionState.State, RegionState.State...)}.
103103
*/
104104
private volatile long lastUpdate = 0;
105105

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,7 +4047,7 @@ public OperationStatus[] batchReplay(MutationReplay[] mutations, long replaySeqI
40474047
* a batch are stored with highest durability specified of for all operations in a batch,
40484048
* except for {@link Durability#SKIP_WAL}.
40494049
*
4050-
* <p>This function is called from {@link #batchReplay(MutationReplay[], long)} with
4050+
* <p>This function is called from {@link #batchReplay(WALSplitUtil.MutationReplay[], long)} with
40514051
* {@link ReplayBatchOperation} instance and {@link #batchMutate(Mutation[], long, long)} with
40524052
* {@link MutationBatchOperation} instance as an argument. As the processing of replay batch
40534053
* and mutation batch is very similar, lot of code is shared by providing generic methods in
@@ -4058,7 +4058,7 @@ public OperationStatus[] batchReplay(MutationReplay[] mutations, long replaySeqI
40584058
* @param batchOp contains the list of mutations
40594059
* @return an array of OperationStatus which internally contains the
40604060
* OperationStatusCode and the exceptionMessage if any.
4061-
* @throws IOException
4061+
* @throws IOException if an IO problem is encountered
40624062
*/
40634063
OperationStatus[] batchMutate(BatchOperation<?> batchOp) throws IOException {
40644064
boolean initialized = false;

hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ private boolean checkHFilesCountPerRegionPerFamily(
453453
}
454454

455455
/**
456-
* @param table the table to load into
456+
* @param conn the HBase cluster connection
457+
* @param tableName the table name of the table to load into
457458
* @param pool the ExecutorService
458459
* @param queue the queue for LoadQueueItem
459460
* @param startEndKeys start and end keys

hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2039,16 +2039,16 @@ public HRegion createLocalHRegion(RegionInfo info, TableDescriptor desc, WAL wal
20392039
}
20402040

20412041
/**
2042-
* @param tableName
2043-
* @param startKey
2044-
* @param stopKey
2045-
* @param callingMethod
2046-
* @param conf
2047-
* @param isReadOnly
2048-
* @param families
2049-
* @throws IOException
2050-
* @return A region on which you must call
2051-
{@link HBaseTestingUtility#closeRegionAndWAL(HRegion)} when done.
2042+
* @param tableName the name of the table
2043+
* @param startKey the start key of the region
2044+
* @param stopKey the stop key of the region
2045+
* @param callingMethod the name of the calling method probably a test method
2046+
* @param conf the configuration to use
2047+
* @param isReadOnly {@code true} if the table is read only, {@code false} otherwise
2048+
* @param families the column families to use
2049+
* @throws IOException if an IO problem is encountered
2050+
* @return A region on which you must call {@link HBaseTestingUtility#closeRegionAndWAL(HRegion)}
2051+
* when done.
20522052
* @deprecated since 2.0.0 and will be removed in 3.0.0. Use
20532053
* {@link #createLocalHRegion(TableName, byte[], byte[], boolean, Durability, WAL, byte[]...)}
20542054
* instead.
@@ -3292,10 +3292,9 @@ public boolean visit(Result r) throws IOException {
32923292
* Waits for a table to be 'enabled'. Enabled means that table is set as 'enabled' and the
32933293
* regions have been all assigned. Will timeout after default period (30 seconds)
32943294
* Tolerates nonexistent table.
3295-
* @param table Table to wait on.
3296-
* @param table
3297-
* @throws InterruptedException
3298-
* @throws IOException
3295+
* @param table the table to wait on.
3296+
* @throws InterruptedException if interrupted while waiting
3297+
* @throws IOException if an IO problem is encountered
32993298
*/
33003299
public void waitTableEnabled(TableName table)
33013300
throws InterruptedException, IOException {

0 commit comments

Comments
 (0)