AjaxStepGit opened a new pull request, #7253:
URL: https://github.com/apache/gravitino/pull/7253

   This PR addresses [Issue 
#7249](https://github.com/apache/gravitino/issues/7249), which pointed out 
unnecessary use of instanceof in exception handling in 
GravitinoVirtualFileSystem.java.
   
   
   ```
   } catch (IOException e) {
     if (e instanceof FilesetPathNotFoundException) {
       throw (FilesetPathNotFoundException) e;
     }
     throw e;
   }
   ```
   
   This check is redundant since:
   
   FilesetPathNotFoundException is a subtype of IOException
   
   Both branches simply rethrow the exception
   
   ```
   
   } catch (IOException e) {
     throw e;
   }
   ```
   Or if this block serves no purpose beyond that, it could be safely removed 
altogether.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to