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

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


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

commit c315c7bee8f4e7e4d6d9b8bb5c065e1b9e077c10
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 cb51b8aee35..28d66af8b26 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
@@ -695,14 +695,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