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

fanningpj pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/pekko-persistence-cassandra.git


The following commit(s) were added to refs/heads/main by this push:
     new ef1d5b5  Remove deprecated freePort method (#316)
ef1d5b5 is described below

commit ef1d5b569c026af5947c9f29114430568451331d
Author: PJ Fanning <[email protected]>
AuthorDate: Sun Sep 28 17:06:01 2025 +0100

    Remove deprecated freePort method (#316)
    
    Removed deprecated freePort method from CassandraLauncher.
---
 .../pekko/persistence/cassandra/testkit/CassandraLauncher.scala  | 9 ---------
 1 file changed, 9 deletions(-)

diff --git 
a/cassandra-launcher/src/main/scala/org/apache/pekko/persistence/cassandra/testkit/CassandraLauncher.scala
 
b/cassandra-launcher/src/main/scala/org/apache/pekko/persistence/cassandra/testkit/CassandraLauncher.scala
index 4769613..bc61dd6 100644
--- 
a/cassandra-launcher/src/main/scala/org/apache/pekko/persistence/cassandra/testkit/CassandraLauncher.scala
+++ 
b/cassandra-launcher/src/main/scala/org/apache/pekko/persistence/cassandra/testkit/CassandraLauncher.scala
@@ -95,15 +95,6 @@ object CassandraLauncher {
     selectedPorts.get()._1
   }
 
-  @deprecated("Internal API, will be removed in future release", "0.104")
-  def freePort(): Int = {
-    val serverSocket = ServerSocketChannel.open().socket()
-    serverSocket.bind(new InetSocketAddress(DEFAULT_HOST, 0))
-    val port = serverSocket.getLocalPort
-    serverSocket.close()
-    port
-  }
-
   /**
    * Select two free ports.
    * Note that requestPort is always used even if user requested a fixed port. 
We want to make sure the port is not in use


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to