Skip to content

Commit b64b492

Browse files
committed
more formatting
1 parent 8259a2e commit b64b492

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,13 @@ private FSDataInputStream open(final Path path,
232232
* {@link org.apache.hadoop.fs.impl.OpenFileParameters}. Ensure that
233233
* FileStatus entered is up-to-date, as it will be used to create the
234234
* InputStream (with info such as contentLength, eTag)
235-
* @param path The location of file to be opened
235+
* @param path The location of file to be opened
236236
* @param parameters OpenFileParameters instance; can hold FileStatus,
237237
* Configuration, bufferSize and mandatoryKeys
238238
*/
239239
@Override
240240
protected CompletableFuture<FSDataInputStream> openFileWithOptions(
241-
final Path path, final OpenFileParameters parameters) {
241+
final Path path, final OpenFileParameters parameters) throws IOException {
242242
LOG.debug("AzureBlobFileSystem.openFileWithOptions path: {}", path);
243243
AbstractFSBuilderImpl.rejectUnknownMandatoryKeys(
244244
parameters.getMandatoryKeys(),
@@ -253,8 +253,7 @@ protected CompletableFuture<FSDataInputStream> openFileWithOptions(
253253
public FSDataOutputStream create(final Path f, final FsPermission permission,
254254
final boolean overwrite, final int bufferSize, final short replication,
255255
final long blockSize, final Progressable progress) throws IOException {
256-
LOG.debug(
257-
"AzureBlobFileSystem.create path: {} permission: {} overwrite: {} bufferSize: {}",
256+
LOG.debug("AzureBlobFileSystem.create path: {} permission: {} overwrite: {} bufferSize: {}",
258257
f,
259258
permission,
260259
overwrite,
@@ -273,7 +272,7 @@ public FSDataOutputStream create(final Path f, final FsPermission permission,
273272
FsPermission.getUMask(getConf()), tracingContext);
274273
statIncrement(FILES_CREATED);
275274
return new FSDataOutputStream(outputStream, statistics);
276-
} catch (AzureBlobFileSystemException ex) {
275+
} catch(AzureBlobFileSystemException ex) {
277276
checkException(f, ex);
278277
return null;
279278
}
@@ -328,7 +327,8 @@ public FSDataOutputStream createNonRecursive(final Path f,
328327

329328
@Override
330329
public FSDataOutputStream append(final Path f, final int bufferSize, final Progressable progress) throws IOException {
331-
LOG.debug("AzureBlobFileSystem.append path: {} bufferSize: {}",
330+
LOG.debug(
331+
"AzureBlobFileSystem.append path: {} bufferSize: {}",
332332
f.toString(),
333333
bufferSize);
334334
statIncrement(CALL_APPEND);
@@ -364,7 +364,7 @@ public boolean rename(final Path src, final Path dst) throws IOException {
364364
fileSystemId, FSOperationType.RENAME, true, tracingHeaderFormat,
365365
listener);
366366
// rename under same folder;
367-
if (makeQualified(parentFolder).equals(qualifiedDstPath)) {
367+
if(makeQualified(parentFolder).equals(qualifiedDstPath)) {
368368
return tryGetFileStatus(qualifiedSrcPath, tracingContext) != null;
369369
}
370370

@@ -403,7 +403,10 @@ public boolean rename(final Path src, final Path dst) throws IOException {
403403
return true;
404404
} catch(AzureBlobFileSystemException ex) {
405405
LOG.debug("Rename operation failed. ", ex);
406-
checkException(src, ex, AzureServiceErrorCode.PATH_ALREADY_EXISTS,
406+
checkException(
407+
src,
408+
ex,
409+
AzureServiceErrorCode.PATH_ALREADY_EXISTS,
407410
AzureServiceErrorCode.INVALID_RENAME_SOURCE_PATH,
408411
AzureServiceErrorCode.SOURCE_PATH_NOT_FOUND, AzureServiceErrorCode.INVALID_SOURCE_OR_DESTINATION_RESOURCE_TYPE,
409412
AzureServiceErrorCode.RENAME_DESTINATION_PARENT_PATH_NOT_FOUND,

0 commit comments

Comments
 (0)