This is an automated email from the ASF dual-hosted git repository.

mytang0 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new 758e91c89 [ISSUE #3235] Replaced lambda with method reference
     new c3c73706d Merge pull request #3325 from PickBas/fix-3235
758e91c89 is described below

commit 758e91c89d20606292502a3f553ec1e0b27ac3e0
Author: Kirill Saied <[email protected]>
AuthorDate: Thu Mar 2 13:33:27 2023 +0300

    [ISSUE #3235] Replaced lambda with method reference
---
 .../org/apache/eventmesh/runtime/connector/ConnectorResource.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/connector/ConnectorResource.java
 
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/connector/ConnectorResource.java
index 71bef8eab..21ce82ccb 100644
--- 
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/connector/ConnectorResource.java
+++ 
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/connector/ConnectorResource.java
@@ -44,7 +44,10 @@ public class ConnectorResource {
     }
 
     public static ConnectorResource getInstance(String 
connectorResourcePluginType) {
-        return 
CONNECTOR_RESOURCE_CACHE.computeIfAbsent(connectorResourcePluginType, key -> 
connectorResourceBuilder(key));
+        return CONNECTOR_RESOURCE_CACHE.computeIfAbsent(
+            connectorResourcePluginType,
+            ConnectorResource::connectorResourceBuilder
+        );
     }
 
     private static ConnectorResource connectorResourceBuilder(String 
connectorResourcePluginType) {


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

Reply via email to