openGemini / opengemini-client-java

CNCF openGemini Java Client Library
https://opengemini.org/
Apache License 2.0
23 stars 16 forks source link

Reduce Cognitive Complexity #84

Closed ys-idev closed 1 month ago

ys-idev commented 3 months ago

https://github.com/openGemini/opengemini-client-java/blob/f804797bbdf8a57328f5c052f77bd3f7bbc27749/opengemini-client-okhttp/src/main/java/io/opengemini/client/okhttp/OpenGeminiOkhttpClientFactory.java#L13

多个模块具有相同的类及实现,且复杂度较高,建议抽取到公共模块或者抽取方法

Multiple modules have the same class and implementation, and the complexity is high. It is recommended that extract the public module or extract method.