Skip to content

Commit 9f343c2

Browse files
murtazahassan123HorizonNet
authored andcommitted
HBASE-22571 Javadoc Warnings related to @return tag
Signed-off-by: Jan Hentschel <[email protected]>
1 parent 12d7db7 commit 9f343c2

File tree

22 files changed

+41
-46
lines changed

22 files changed

+41
-46
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ private void waitForRegion() throws InterruptedIOException {
433433
*
434434
* @param loc
435435
* @param heapSizeOfRow
436-
* @return
436+
* @return either Include {@link ReturnCode} or Skip {@link ReturnCode}
437437
*/
438438
@Override
439439
public ReturnCode canTakeOperation(HRegionLocation loc, long heapSizeOfRow) {

hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapred/TestTableInputFormat.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ public static Table createTable(byte[] tableName, byte[][] families) throws IOEx
143143
/**
144144
* Verify that the result and key have expected values.
145145
*
146-
* @param r
147-
* @param key
148-
* @param expectedKey
149-
* @param expectedValue
150-
* @return
146+
* @param r single row result
147+
* @param key the row key
148+
* @param expectedKey the expected key
149+
* @param expectedValue the expected value
150+
* @return true if the result contains the expected key and value, false otherwise.
151151
*/
152152
static boolean checkResult(Result r, ImmutableBytesWritable key,
153153
byte[] expectedKey, byte[] expectedValue) {

hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestTableInputFormat.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ public static Table createTable(byte[] tableName, byte[][] families) throws IOEx
141141
/**
142142
* Verify that the result and key have expected values.
143143
*
144-
* @param r
145-
* @param key
146-
* @param expectedKey
147-
* @param expectedValue
148-
* @return
144+
* @param r single row result
145+
* @param key the row key
146+
* @param expectedKey the expected key
147+
* @param expectedValue the expected value
148+
* @return true if the result contains the expected key and value, false otherwise.
149149
*/
150150
static boolean checkResult(Result r, ImmutableBytesWritable key,
151151
byte[] expectedKey, byte[] expectedValue) {

hbase-server/src/main/java/org/apache/hadoop/hbase/client/VersionInfoUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private static int buildVersionNumber(int major, int minor, int patch) {
149149
/**
150150
* Returns the version components
151151
* Examples: "1.4.3" returns [1, 4, 3], "4.5.6-SNAPSHOT" returns [4, 5, 6, "SNAPSHOT"]
152-
* @returns the components of the version string
152+
* @return the components of the version string
153153
*/
154154
private static String[] getVersionComponents(final HBaseProtos.VersionInfo versionInfo) {
155155
return versionInfo.getVersion().split("[\\.-]");

hbase-server/src/main/java/org/apache/hadoop/hbase/client/locking/EntityLock.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ public LockHeartbeatWorker(final String desc) {
218218
}
219219

220220
/**
221-
* Shutdown the thread cleanly, quietly. We done.
222-
* @return
221+
* @return Shuts down the thread clean and quietly.
223222
*/
224223
Thread shutdown() {
225224
shutdown = true;

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
@@ -4089,8 +4089,8 @@ OperationStatus[] batchMutate(BatchOperation<?> batchOp) throws IOException {
40894089

40904090
/**
40914091
* Called to do a piece of the batch that came in to {@link #batchMutate(Mutation[], long, long)}
4092-
* In here we also handle replay of edits on region recover.
4093-
* @return Change in size brought about by applying <code>batchOp</code>
4092+
* In here we also handle replay of edits on region recover. Also gets change in size brought
4093+
* about by applying {@code batchOp}.
40944094
*/
40954095
private void doMiniBatchMutate(BatchOperation<?> batchOp) throws IOException {
40964096
boolean success = false;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ private void recycleChunks() {
300300
* <code>c</code>. Postcondition is that curChunk.get()
301301
* != c
302302
* @param c the chunk to retire
303-
* @return true if we won the race to retire the chunk
304303
*/
305304
private void tryRetireChunk(Chunk c) {
306305
currChunk.compareAndSet(c, null);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ private void rpcPreCheck(String requestName) throws ServiceException {
539539
* Starts the nonce operation for a mutation, if needed.
540540
* @param mutation Mutation.
541541
* @param nonceGroup Nonce group from the request.
542-
* @returns whether to proceed this mutation.
542+
* @return whether to proceed this mutation.
543543
*/
544544
private boolean startNonceOperation(final MutationProto mutation, long nonceGroup)
545545
throws IOException {

hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotInfo.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ public static List<SnapshotDescription> getSnapshotList(final Configuration conf
614614
* @param uniqueHFilesArchiveSize {@link AtomicLong} the accumulated store file size in archive
615615
* @param uniqueHFilesSize {@link AtomicLong} the accumulated store file size shared
616616
* @param uniqueHFilesMobSize {@link AtomicLong} the accumulated mob store file size shared
617-
* @return the snapshot stats
618617
*/
619618
private static void getSnapshotFilesMap(final Configuration conf,
620619
final SnapshotDescription snapshot, final ExecutorService exec,

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,12 @@ public ClusterMetrics getInitialClusterMetrics() throws IOException {
118118

119119
/**
120120
* Stops the given region server, by attempting a gradual stop.
121-
* @return whether the operation finished with success
122121
* @throws IOException if something goes wrong
123122
*/
124123
public abstract void stopRegionServer(ServerName serverName) throws IOException;
125124

126125
/**
127126
* Wait for the specified region server to join the cluster
128-
* @return whether the operation finished with success
129127
* @throws IOException if something goes wrong or timeout occurs
130128
*/
131129
public void waitForRegionServerToStart(String hostname, int port, long timeout)
@@ -145,7 +143,6 @@ public void waitForRegionServerToStart(String hostname, int port, long timeout)
145143

146144
/**
147145
* Wait for the specified region server to stop the thread / process.
148-
* @return whether the operation finished with success
149146
* @throws IOException if something goes wrong or timeout occurs
150147
*/
151148
public abstract void waitForRegionServerToStop(ServerName serverName, long timeout)
@@ -175,15 +172,13 @@ public abstract void waitForRegionServerToStop(ServerName serverName, long timeo
175172

176173
/**
177174
* Wait for the specified zookeeper node to join the cluster
178-
* @return whether the operation finished with success
179175
* @throws IOException if something goes wrong or timeout occurs
180176
*/
181177
public abstract void waitForZkNodeToStart(ServerName serverName, long timeout)
182178
throws IOException;
183179

184180
/**
185181
* Wait for the specified zookeeper node to stop the thread / process.
186-
* @return whether the operation finished with success
187182
* @throws IOException if something goes wrong or timeout occurs
188183
*/
189184
public abstract void waitForZkNodeToStop(ServerName serverName, long timeout)
@@ -212,15 +207,13 @@ public abstract void waitForZkNodeToStop(ServerName serverName, long timeout)
212207

213208
/**
214209
* Wait for the specified datanode to join the cluster
215-
* @return whether the operation finished with success
216210
* @throws IOException if something goes wrong or timeout occurs
217211
*/
218212
public abstract void waitForDataNodeToStart(ServerName serverName, long timeout)
219213
throws IOException;
220214

221215
/**
222216
* Wait for the specified datanode to stop the thread / process.
223-
* @return whether the operation finished with success
224217
* @throws IOException if something goes wrong or timeout occurs
225218
*/
226219
public abstract void waitForDataNodeToStop(ServerName serverName, long timeout)
@@ -248,15 +241,13 @@ public abstract void waitForDataNodeToStop(ServerName serverName, long timeout)
248241

249242
/**
250243
* Wait for the specified namenode to join the cluster
251-
* @return whether the operation finished with success
252244
* @throws IOException if something goes wrong or timeout occurs
253245
*/
254246
public abstract void waitForNameNodeToStart(ServerName serverName, long timeout)
255247
throws IOException;
256248

257249
/**
258250
* Wait for the specified namenode to stop
259-
* @return whether the operation finished with success
260251
* @throws IOException if something goes wrong or timeout occurs
261252
*/
262253
public abstract void waitForNameNodeToStop(ServerName serverName, long timeout)
@@ -266,7 +257,6 @@ public abstract void waitForNameNodeToStop(ServerName serverName, long timeout)
266257
* Starts a new master on the given hostname or if this is a mini/local cluster,
267258
* starts a master locally.
268259
* @param hostname the hostname to start the master on
269-
* @return whether the operation finished with success
270260
* @throws IOException if something goes wrong
271261
*/
272262
public abstract void startMaster(String hostname, int port) throws IOException;

0 commit comments

Comments
 (0)