szetszwo commented on PR #9996:
URL: https://github.com/apache/ozone/pull/9996#issuecomment-4150461279

   @Russole , @szetszwo , thanks for reviewing this!
   
   - Fixed the case indentation checkstyple problem.
   - Sorted the methods in switch.
   - It can generate the entire class now.
   
   ```java
   /** Code generated for DeletedBlockLogStateManager.  Do not modify. */
   public class DeletedBlockLogStateManagerInvoker implements 
ScmInvoker<DeletedBlockLogStateManager> {
     private final DeletedBlockLogStateManager impl;
   
     public DeletedBlockLogStateManagerInvoker(DeletedBlockLogStateManager 
impl) {
       this.impl = impl;
     }
   
     @Override
     public RequestType getType() {
       return RequestType.BLOCK;
     }
   
     @Override
     public Class<DeletedBlockLogStateManager> getApi() {
       return DeletedBlockLogStateManager.class;
     }
   
     @Override
     public DeletedBlockLogStateManager getImpl() {
       return impl;
     }
   
     @SuppressWarnings("unchecked")
     @Override
     public Object invokeLocal(String methodName, Object[] params) throws 
Exception {
       switch (methodName) {
       case "addTransactionsToDB":
         final ArrayList arg0 = params.length > 0 ? (ArrayList) params[0] : 
null;
         final DeletedBlocksTransactionSummary arg1 = params.length > 1 ? 
(DeletedBlocksTransactionSummary) params[1] : null;
         impl.addTransactionsToDB(arg0, arg1);
         return null;
   
       case "getReadOnlyIterator":
         return impl.getReadOnlyIterator();
   
       case "onFlush":
         impl.onFlush();
         return null;
   
       case "reinitialize":
         final Table arg2 = params.length > 0 ? (Table) params[0] : null;
         final Table arg3 = params.length > 1 ? (Table) params[1] : null;
         impl.reinitialize(arg2, arg3);
         return null;
   
       case "removeTransactionsFromDB":
         final ArrayList arg4 = params.length > 0 ? (ArrayList) params[0] : 
null;
         final DeletedBlocksTransactionSummary arg5 = params.length > 1 ? 
(DeletedBlocksTransactionSummary) params[1] : null;
         impl.removeTransactionsFromDB(arg4, arg5);
         return null;
   
       default:
         throw new IllegalArgumentException("Method not found: " + methodName + 
" in DeletedBlockLogStateManager");
       }
     }
   }
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to