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

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


The following commit(s) were added to refs/heads/master by this push:
     new a5c8e8690 fixes #3646
     new 0aa9f694d Merge pull request #3811 from nikam14/patch-14
a5c8e8690 is described below

commit a5c8e8690d595fdc7d498b785f041c3a58d7a72b
Author: maheshnikam <[email protected]>
AuthorDate: Mon Apr 24 16:39:44 2023 +0530

    fixes #3646
---
 .../apache/eventmesh/runtime/util/EventMeshCloudEventWriter.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshCloudEventWriter.java
 
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshCloudEventWriter.java
index 131b30365..cf03cb8f2 100644
--- 
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshCloudEventWriter.java
+++ 
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/EventMeshCloudEventWriter.java
@@ -20,19 +20,21 @@ package org.apache.eventmesh.runtime.util;
 import java.util.HashMap;
 import java.util.Map;
 
+import javax.annotation.Nonnull;
+
 import io.cloudevents.rw.CloudEventContextWriter;
 import io.cloudevents.rw.CloudEventRWException;
 
 public class EventMeshCloudEventWriter implements CloudEventContextWriter {
 
-    private Map<String, Object> extensionMap = null;
+    private Map<String, Object> extensionMap;
 
     public EventMeshCloudEventWriter() {
         extensionMap = new HashMap<String, Object>();
     }
 
     @Override
-    public CloudEventContextWriter withContextAttribute(String key, String 
value)
+    public CloudEventContextWriter withContextAttribute(@Nonnull String key, 
@Nonnull String value)
         throws CloudEventRWException {
         extensionMap.put(key, value);
         return this;


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

Reply via email to