From 31c15e4faf489e93cb3300966447c83c2f5cd34e Mon Sep 17 00:00:00 2001 From: oshai Date: Tue, 31 Jan 2023 01:31:08 +0200 Subject: [PATCH] change copy method signature --- .../src/main/java/com/github/jasync/sql/db/Configuration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db-async-common/src/main/java/com/github/jasync/sql/db/Configuration.kt b/db-async-common/src/main/java/com/github/jasync/sql/db/Configuration.kt index 45baf663..e23661a6 100644 --- a/db-async-common/src/main/java/com/github/jasync/sql/db/Configuration.kt +++ b/db-async-common/src/main/java/com/github/jasync/sql/db/Configuration.kt @@ -132,7 +132,7 @@ class Configuration @JvmOverloads constructor( fun copy( username: String? = null, host: String? = null, - port: Int? = null, + port: Int, password: String? = null, database: String? = null, ssl: SSLConfiguration? = null, @@ -151,7 +151,7 @@ class Configuration @JvmOverloads constructor( return Configuration( username = username ?: this.username, host = host ?: this.host, - port = port ?: this.port, + port = port, password = password ?: this.password, database = database ?: this.database, ssl = ssl ?: this.ssl,