github-advanced-security[bot] commented on code in PR #18743:
URL:
https://github.com/apache/dolphinscheduler/pull/18743#discussion_r4397090961
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OkHttpUtils.java:
##########
@@ -223,8 +223,51 @@
int writeTimeout,
int readTimeout,
boolean keepAlive) throws
IOException {
+ return put(url, okHttpRequestHeaders, null, requestBodyMap,
+ connectTimeout, writeTimeout, readTimeout, keepAlive);
+ }
+
+ /**
+ * http put request
+ * @param requestParams the request parameters appended to the url, same
as the GET path
Review Comment:
## CodeQL / Spurious Javadoc @param tags
@param tag "requestParams" does not match any actual parameter of method
"put()".
[Show more
details](https://github.com/apache/dolphinscheduler/security/code-scanning/5882)
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OkHttpUtils.java:
##########
@@ -223,8 +223,51 @@
int writeTimeout,
int readTimeout,
boolean keepAlive) throws
IOException {
+ return put(url, okHttpRequestHeaders, null, requestBodyMap,
+ connectTimeout, writeTimeout, readTimeout, keepAlive);
+ }
+
+ /**
+ * http put request
+ * @param requestParams the request parameters appended to the url, same
as the GET path
+ * @param connectTimeout connect timeout in milliseconds
+ * @param writeTimeout write timeout in milliseconds
+ * @param readTimeout read timeout in milliseconds
+ * @return OkHttpResponse
+ * @throws RuntimeException
+ */
+ public static @NonNull OkHttpResponse put(@NonNull String url,
+ @Nullable OkHttpRequestHeaders
okHttpRequestHeaders,
+ @Nullable Map<String, Object>
requestParamsMap,
+ @Nullable Map<String, Object>
requestBodyMap,
+ int connectTimeout,
+ int writeTimeout,
+ int readTimeout) throws
IOException {
+ return put(url, okHttpRequestHeaders, requestParamsMap, requestBodyMap,
+ connectTimeout, writeTimeout, readTimeout, false);
+ }
+
+ /**
+ * http put request
+ * @param requestParams the request parameters appended to the url, same
as the GET path
Review Comment:
## CodeQL / Spurious Javadoc @param tags
@param tag "requestParams" does not match any actual parameter of method
"put()".
[Show more
details](https://github.com/apache/dolphinscheduler/security/code-scanning/5883)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]