youzipi commented on code in PR #17275:
URL: https://github.com/apache/pulsar/pull/17275#discussion_r963823203


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/intercept/InterceptFilterOutTest.java:
##########
@@ -71,7 +71,7 @@ public void testFilterOutForPreInterceptFilter() throws 
Exception {
         Mockito.doNothing().when(chain).doFilter(Mockito.any(), Mockito.any());
         HttpServletRequestWrapper mockInputStream = new 
MockRequestWrapper(request);
         
Mockito.doReturn(mockInputStream.getInputStream()).when(request).getInputStream();
-        Mockito.doReturn(new 
StringBuffer("http://127.0.0.1:8080";)).when(request).getRequestURL();
+        Mockito.doReturn(new 
StringBuilder("http://127.0.0.1:8080";)).when(request).getRequestURL();

Review Comment:
   yes, I saw the failed case.
   I plan to exclude this rule.
   
   I created an issue:
   https://github.com/gaul/modernizer-maven-plugin/issues/149
   they insist this as a default rule.



-- 
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]

Reply via email to