jonasgeiregat commented on code in PR #546:
URL: https://github.com/apache/pulsar-manager/pull/546#discussion_r1483369633
##########
src/main/java/org/apache/pulsar/manager/utils/HttpUtil.java:
##########
@@ -130,7 +130,7 @@ public static void initHttpClient() {
}
}
- public static String doGet(String url, Map<String, String> header){
Review Comment:
I removed static from most of these methods because I wanted to get rid of
powermock which succeeded.
It's also not the best design to make things static while it can perfectly
be a bean and depending classes it's tests can rely on mockito to mock it out,
like I did when I replaced it with powermock.
I don't see why this is a breaking change, who is using this class besides
some internal classes within this project? This is not a library.
--
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]