This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new e135b487a02 [fix][test] Make base test class method protected so that 
it passes ReportUnannotatedMethods validation (#21976)
e135b487a02 is described below

commit e135b487a0230806a6133294208e19e3977cd5cf
Author: Lari Hotari <[email protected]>
AuthorDate: Fri Jan 26 23:40:39 2024 -0800

    [fix][test] Make base test class method protected so that it passes 
ReportUnannotatedMethods validation (#21976)
    
    (cherry picked from commit 67354b15650b7d0bfa92f4ad92effcf5c6a1ca72)
---
 .../org/apache/pulsar/broker/auth/MockedPulsarServiceBaseTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/MockedPulsarServiceBaseTest.java
 
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/MockedPulsarServiceBaseTest.java
index 62d2b2aafa7..7380912e424 100644
--- 
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/MockedPulsarServiceBaseTest.java
+++ 
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/MockedPulsarServiceBaseTest.java
@@ -670,14 +670,14 @@ public abstract class MockedPulsarServiceBaseTest extends 
TestRetrySupport {
         }
     }
 
-    public static void reconnectAllConnections(PulsarClientImpl c) throws 
Exception {
+    private static void reconnectAllConnections(PulsarClientImpl c) throws 
Exception {
         ConnectionPool pool = c.getCnxPool();
         Method closeAllConnections = 
ConnectionPool.class.getDeclaredMethod("closeAllConnections", new Class[]{});
         closeAllConnections.setAccessible(true);
         closeAllConnections.invoke(pool, new Object[]{});
     }
 
-    public void reconnectAllConnections() throws Exception {
+    protected void reconnectAllConnections() throws Exception {
         reconnectAllConnections((PulsarClientImpl) pulsarClient);
     }
 

Reply via email to