Skip to content

Commit

Permalink
don't use Java Deprecated annotation with the Scala equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed May 11, 2024
1 parent e2713aa commit e010ab1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ object ConnectionContext {

// ConnectionContext
/** Used to serve HTTPS traffic. */
@Deprecated @deprecated("use httpsServer, httpsClient or the method that takes a custom factory",
@deprecated("use httpsServer, httpsClient or the method that takes a custom factory",
since = "Akka HTTP 10.2.0")
def https(sslContext: SSLContext): HttpsConnectionContext = // ...
// #https-context-creation
scaladsl.ConnectionContext.https(sslContext)

/** Used to serve HTTPS traffic. */
@Deprecated @deprecated("use httpsServer, httpsClient or the method that takes a custom factory",
@Deprecated("use httpsServer, httpsClient or the method that takes a custom factory",

Check failure on line 70 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

arguments to Java annotations have to be supplied as named arguments

Check failure on line 70 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 70 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 70 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 70 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

arguments to Java annotations have to be supplied as named arguments
since = "Akka HTTP 10.2.0")

Check failure on line 71 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

unknown annotation argument name: since

Check failure on line 71 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

unknown annotation argument name: since

Check failure on line 71 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 71 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 71 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

unknown annotation argument name: since

Check failure on line 71 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

unknown annotation argument name: since

Check failure on line 71 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

unknown annotation argument name: since
def https(
sslContext: SSLContext,
Expand All @@ -86,7 +86,7 @@ object ConnectionContext {
sslParameters.toScala)

/** Used to serve HTTPS traffic. */
@Deprecated @deprecated("use httpsServer, httpsClient or the method that takes a custom factory",
@Deprecated("use httpsServer, httpsClient or the method that takes a custom factory",

Check failure on line 89 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

arguments to Java annotations have to be supplied as named arguments

Check failure on line 89 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 89 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 89 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 89 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

arguments to Java annotations have to be supplied as named arguments
since = "Akka HTTP 10.2.0")

Check failure on line 90 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

unknown annotation argument name: since

Check failure on line 90 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

unknown annotation argument name: since

Check failure on line 90 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 90 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 90 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

unknown annotation argument name: since

Check failure on line 90 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

unknown annotation argument name: since

Check failure on line 90 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

unknown annotation argument name: since
def https(
sslContext: SSLContext,
Expand Down Expand Up @@ -126,22 +126,22 @@ abstract class HttpsConnectionContext extends pekko.http.javadsl.ConnectionConte
override final def isSecure = true

/** Java API */
@Deprecated @deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")
@Deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

arguments to Java annotations have to be supplied as named arguments

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

unknown annotation argument name: since

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

unknown annotation argument name: since

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

unknown annotation argument name: since

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

unknown annotation argument name: since

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 129 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

unknown annotation argument name: since
def getEnabledCipherSuites: Optional[JCollection[String]]

/** Java API */
@Deprecated @deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")
@Deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

arguments to Java annotations have to be supplied as named arguments

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

unknown annotation argument name: since

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

unknown annotation argument name: since

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

unknown annotation argument name: since

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

unknown annotation argument name: since

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 133 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

unknown annotation argument name: since
def getEnabledProtocols: Optional[JCollection[String]]

/** Java API */
@Deprecated @deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")
@Deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

arguments to Java annotations have to be supplied as named arguments

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / validate-links

unknown annotation argument name: since

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 8)

unknown annotation argument name: since

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 11)

unknown annotation argument name: since

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

classfile annotation arguments have to be supplied as named arguments

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.12, 11)

unknown annotation argument name: since

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

arguments to Java annotations have to be supplied as named arguments

Check failure on line 137 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (2.13, 8)

unknown annotation argument name: since
def getClientAuth: Optional[TLSClientAuth]

/** Java API */
@Deprecated @deprecated("here for binary compatibility, not always available", since = "Akka HTTP 10.2.0")
@Deprecated("here for binary compatibility, not always available", since = "Akka HTTP 10.2.0")

Check failure on line 141 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 141 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since
def getSslContext: SSLContext

/** Java API */
@Deprecated @deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")
@Deprecated("here for binary compatibility", since = "Akka HTTP 10.2.0")

Check failure on line 145 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 145 in http-core/src/main/scala/org/apache/pekko/http/javadsl/ConnectionContext.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since
def getSslParameters: Optional[SSLParameters]
}
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ class Http(system: ExtendedActorSystem) extends pekko.actor.Extension {
*
* @deprecated since Akka HTTP 10.2.0: set context explicitly when binding
*/
@Deprecated @deprecated("Set context explicitly when binding", since = "Akka HTTP 10.2.0")
@Deprecated("Set context explicitly when binding", since = "Akka HTTP 10.2.0")

Check failure on line 806 in http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 806 in http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since
def defaultServerHttpContext: ConnectionContext =
delegate.defaultServerHttpContext

Expand All @@ -813,7 +813,7 @@ class Http(system: ExtendedActorSystem) extends pekko.actor.Extension {
*
* @deprecated since Akka HTTP 10.2.0: set context explicitly when binding
*/
@Deprecated @deprecated("Set context explicitly when binding", since = "Akka HTTP 10.2.0")
@Deprecated("Set context explicitly when binding", since = "Akka HTTP 10.2.0")

Check failure on line 816 in http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 816 in http-core/src/main/scala/org/apache/pekko/http/javadsl/Http.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since
def setDefaultServerHttpContext(context: ConnectionContext): Unit =
delegate.setDefaultServerHttpContext(context.asScala)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import scala.concurrent.duration.{ Duration, FiniteDuration }
def getBacklog: Int
def getSocketOptions: java.lang.Iterable[SocketOption]
def getDefaultHostHeader: Host
@Deprecated @deprecated("Kept for binary compatibility; Use websocketSettings.getRandomFactory instead",
@Deprecated("Kept for binary compatibility; Use websocketSettings.getRandomFactory instead",
since = "Akka HTTP 10.2.0")

Check failure on line 58 in http-core/src/main/scala/org/apache/pekko/http/javadsl/settings/ServerSettings.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 8)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since

Check failure on line 58 in http-core/src/main/scala/org/apache/pekko/http/javadsl/settings/ServerSettings.scala

View workflow job for this annotation

GitHub Actions / Compile and test (3.3, 11)

constructor Deprecated in trait Deprecated: (): Deprecated does not have a parameter since
def getWebsocketRandomFactory: java.util.function.Supplier[Random]
def getWebsocketSettings: WebSocketSettings
Expand Down Expand Up @@ -87,7 +87,7 @@ import scala.concurrent.duration.{ Duration, FiniteDuration }
self.copy(socketOptions = newValue.asScala.toList)
def withDefaultHostHeader(newValue: Host): ServerSettings = self.copy(defaultHostHeader = newValue.asScala)
def withParserSettings(newValue: ParserSettings): ServerSettings = self.copy(parserSettings = newValue.asScala)
@Deprecated @deprecated("Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead",
@Deprecated("Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead",
since = "Akka HTTP 10.2.0")
def withWebsocketRandomFactory(newValue: java.util.function.Supplier[Random]): ServerSettings =
self.copy(websocketSettings = websocketSettings.withRandomFactoryFactory(new Supplier[Random] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ abstract class ServerSettings private[pekko] () extends pekko.http.javadsl.setti
def backlog: Int
def socketOptions: immutable.Seq[SocketOption]
def defaultHostHeader: Host
@Deprecated @deprecated("Kept for binary compatibility; Use websocketSettings.randomFactory instead",
@deprecated("Kept for binary compatibility; Use websocketSettings.randomFactory instead",
since = "Akka HTTP 10.1.1")
def websocketRandomFactory: () => Random
def websocketSettings: WebSocketSettings
Expand Down Expand Up @@ -87,7 +87,7 @@ abstract class ServerSettings private[pekko] () extends pekko.http.javadsl.setti
override def getRemoteAddressHeader = this.remoteAddressHeader
override def getRemoteAddressAttribute: Boolean = this.remoteAddressAttribute
override def getLogUnencryptedNetworkBytes = this.logUnencryptedNetworkBytes.toJava
@Deprecated @deprecated("Kept for binary compatibility; Use websocketSettings.getRandomFactory instead",
@deprecated("Kept for binary compatibility; Use websocketSettings.getRandomFactory instead",
since = "Akka HTTP 10.2.0")
override def getWebsocketRandomFactory = new Supplier[Random] {
override def get(): Random = self.websocketRandomFactory()
Expand Down Expand Up @@ -116,7 +116,7 @@ abstract class ServerSettings private[pekko] () extends pekko.http.javadsl.setti
override def withBacklog(newValue: Int): ServerSettings = self.copy(backlog = newValue)
override def withSocketOptions(newValue: java.lang.Iterable[SocketOption]): ServerSettings =
self.copy(socketOptions = newValue.asScala.toList)
@Deprecated @deprecated("Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead",
@deprecated("Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead",
since = "Akka HTTP 10.2.0")
override def withWebsocketRandomFactory(newValue: java.util.function.Supplier[Random]): ServerSettings =
self.copy(websocketSettings = this.websocketSettings.withRandomFactoryFactory(new Supplier[Random] {
Expand All @@ -139,7 +139,7 @@ abstract class ServerSettings private[pekko] () extends pekko.http.javadsl.setti
self.copy(logUnencryptedNetworkBytes = newValue)
def withDefaultHostHeader(newValue: Host): ServerSettings = self.copy(defaultHostHeader = newValue)
def withParserSettings(newValue: ParserSettings): ServerSettings = self.copy(parserSettings = newValue)
@Deprecated @deprecated("Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead",
@deprecated("Kept for binary compatibility; Use websocketSettings.withRandomFactoryFactory instead",
since = "Akka HTTP 10.2.0")
def withWebsocketRandomFactory(newValue: () => Random): ServerSettings =
self.copy(websocketSettings = this.websocketSettings.withRandomFactoryFactory(new Supplier[Random] {
Expand Down

0 comments on commit e010ab1

Please sign in to comment.