You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2023/05/24 12:58:11 UTC
[eventmesh] branch master updated: [ISSUE #3907] Replaced List with Collection (#4004)
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 b823c8b78 [ISSUE #3907] Replaced List with Collection (#4004)
b823c8b78 is described below
commit b823c8b78897aac6b1275fe45777bc035976e4a6
Author: Kirill Saied <38...@users.noreply.github.com>
AuthorDate: Wed May 24 15:58:04 2023 +0300
[ISSUE #3907] Replaced List with Collection (#4004)
---
.../main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java
index 2e041ba37..744557a10 100644
--- a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java
+++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/HttpTinyClient.java
@@ -25,6 +25,7 @@ import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
+import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
@@ -61,7 +62,7 @@ public class HttpTinyClient {
}
}
- private static String encodingParams(List<String> paramValues, String encoding)
+ private static String encodingParams(Collection<String> paramValues, String encoding)
throws UnsupportedEncodingException {
StringBuilder sb = new StringBuilder();
if (null == paramValues) {
@@ -78,7 +79,7 @@ public class HttpTinyClient {
return sb.toString();
}
- private static void setHeaders(HttpURLConnection conn, List<String> headers, String encoding) {
+ private static void setHeaders(HttpURLConnection conn, Collection<String> headers, String encoding) {
if (null != headers) {
for (Iterator<String> iter = headers.iterator(); iter.hasNext(); ) {
conn.addRequestProperty(iter.next(), iter.next());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org