Skip to content

Commit 95b0f9d

Browse files
committed
javadocs refactor
1 parent a2472d5 commit 95b0f9d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/security/EncryptionAdapter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public class EncryptionAdapter {
5454
* @param path Path for which encryptionContext and encryptionKeys to be stored
5555
* in the object
5656
* @param encryptionContext encryptionContext for the path stored in the backend
57-
* @throws IOException
57+
* @throws IOException throws back the exception it receives from the
58+
* {@link EncryptionAdapter#computeKeys()} method call.
5859
* */
5960
public EncryptionAdapter(EncryptionContextProvider provider, String path,
6061
byte[] encryptionContext) throws IOException {
@@ -75,7 +76,8 @@ public EncryptionAdapter(EncryptionContextProvider provider, String path,
7576
* @param provider developer's implementation of {@link EncryptionContextProvider}
7677
* @param path file path for which encryptionContext and encryptionKeys to be
7778
* created and stored
78-
* @throws IOException
79+
* @throws IOException throws back the exception it receives from the method call
80+
* to {@link EncryptionContextProvider} object.
7981
* */
8082
public EncryptionAdapter(EncryptionContextProvider provider, String path)
8183
throws IOException {

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ public AbfsRestOperation deleteFilesystem(TracingContext tracingContext) throws
424424
* @return object of {@link AbfsRestOperation} which contain all the information
425425
* about the communication with the server. The information is in
426426
* {@link AbfsRestOperation#getResult()}
427-
* @throws IOException
427+
* @throws IOException throws back the exception it receives from the
428+
* {@link AbfsRestOperation#execute(TracingContext)} method call.
428429
* */
429430
public AbfsRestOperation createPath(final String path, final boolean isFile,
430431
final boolean overwrite, final Permissions permissions,

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/NamespaceUtil.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ private NamespaceUtil() {
5959
* @param tracingContext object to correlate Store requests.
6060
* @return if the account corresponding to the given client is namespace-enabled
6161
* or not.
62-
* @throws AzureBlobFileSystemException
62+
* @throws AzureBlobFileSystemException throws back the exception the method receives
63+
* from the {@link AbfsClient#getAclStatus(String, TracingContext)}. In case it gets
64+
* {@link AbfsRestOperationException}, it checks if the exception statusCode is
65+
* BAD_REQUEST or not. If not, then it will pass the exception to the calling method.
6366
* */
6467
public static Boolean isNamespaceEnabled(final AbfsClient abfsClient,
6568
final TracingContext tracingContext)

0 commit comments

Comments
 (0)