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

mikexue 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 f2bef69bf [ISSUE #3836] Add proper access modifers for 
HttpEventWrapper (#4177)
f2bef69bf is described below

commit f2bef69bfdcb867ae57113663dcca16df57a2998
Author: ruhshan <[email protected]>
AuthorDate: Fri Jul 14 08:32:43 2023 +0600

    [ISSUE #3836] Add proper access modifers for HttpEventWrapper (#4177)
    
    * Make headerMap and sysHeaderMap transient
    
    * Make public fields private in HttpEventWrapper
---
 .../eventmesh/common/protocol/http/HttpEventWrapper.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/http/HttpEventWrapper.java
 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/http/HttpEventWrapper.java
index 3b40d8c16..4dff89c67 100644
--- 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/http/HttpEventWrapper.java
+++ 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/http/HttpEventWrapper.java
@@ -48,23 +48,23 @@ public class HttpEventWrapper implements 
ProtocolTransportObject {
 
     public static final long serialVersionUID = -8547334421415366981L;
 
-    private Map<String, Object> headerMap = new HashMap<>();
+    private transient Map<String, Object> headerMap = new HashMap<>();
 
-    private Map<String, Object> sysHeaderMap = new HashMap<>();
+    private transient Map<String, Object> sysHeaderMap = new HashMap<>();
 
     private byte[] body;
 
     private String requestURI;
 
-    public String httpMethod;
+    private String httpMethod;
 
-    public String httpVersion;
+    private String httpVersion;
 
     //Command request time
-    public long reqTime;
+    private long reqTime;
 
     //Command response time
-    public long resTime;
+    private long resTime;
 
     private HttpResponseStatus httpResponseStatus = HttpResponseStatus.OK;
 


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

Reply via email to