You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "Alonexc (via GitHub)" <gi...@apache.org> on 2023/07/21 02:26:26 UTC

[I] [Enhancement] Some optimizations to GrpcEventMeshCloudEventProtocolResolver. (eventmesh)

Alonexc opened a new issue, #4267:
URL: https://github.com/apache/eventmesh/issues/4267

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Enhancement Request
   
   ![image](https://github.com/apache/eventmesh/assets/91315508/07e25a9c-ba02-4063-8fe3-797e2d544339)
   ![image](https://github.com/apache/eventmesh/assets/91315508/83934183-f6e9-4b6e-ae02-77cc361ebeb7)
   located at:
   eventmesh-protocol-plugin/eventmesh-protocol-cloudevents/src/main/java/org/apache/eventmesh/protocol/cloudevents/resolver/grpc/GrpcEventMeshCloudEventProtocolResolver.java line 43,51,60
   analysis and explanation:
   a. Immediately return this expression instead of assigning it to the temporary variable "event".
   b. Method invocation 'deserialize' may produce 'NullPointerException'
   
   
   ### Describe the solution you'd like
   
   Inline variable and use Objects.requireNonNull()
   ![image](https://github.com/apache/eventmesh/assets/91315508/35864e11-8a07-4b59-9d53-11b081913ebb)
   ![image](https://github.com/apache/eventmesh/assets/91315508/9cd8db7a-6180-4716-b330-0ea9e7726a9c)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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: issues-unsubscribe@eventmesh.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [I] [Enhancement] Some optimizations to GrpcEventMeshCloudEventProtocolResolver. (eventmesh)

Posted by "devCod3r (via GitHub)" <gi...@apache.org>.
devCod3r commented on issue #4267:
URL: https://github.com/apache/eventmesh/issues/4267#issuecomment-1645223553

   Hello, I would like to work on this. Please assign this issue to my name. Thank you!!


-- 
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: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [I] [Enhancement] Some optimizations to GrpcEventMeshCloudEventProtocolResolver. (eventmesh)

Posted by "Alonexc (via GitHub)" <gi...@apache.org>.
Alonexc commented on issue #4267:
URL: https://github.com/apache/eventmesh/issues/4267#issuecomment-1645241042

   @devCod3r ok! You can submit the pr first.


-- 
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: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [I] [Enhancement] Some optimizations to GrpcEventMeshCloudEventProtocolResolver. (eventmesh)

Posted by "mxsm (via GitHub)" <gi...@apache.org>.
mxsm closed issue #4267: [Enhancement] Some optimizations to GrpcEventMeshCloudEventProtocolResolver.
URL: https://github.com/apache/eventmesh/issues/4267


-- 
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: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org