Skip to content

Commit

Permalink
Improve ReplaceWith
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdgr8 committed Jan 22, 2024
1 parent 5503a57 commit 5fa3de6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private constructor(

@Deprecated(
"Use ReplicatorConfiguration(Endpoint)",
ReplaceWith("ReplicatorConfiguration(target)")
ReplaceWith("ReplicatorConfiguration(target).addCollection(database.defaultCollection, null)")
)
public actual constructor(database: Database, target: Endpoint) : this(
CBLReplicatorConfiguration(database.actual, target.actual),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public expect class ReplicatorConfiguration {
*/
@Deprecated(
"Use ReplicatorConfiguration(Endpoint)",
ReplaceWith("ReplicatorConfiguration(target)")
ReplaceWith("ReplicatorConfiguration(target).addCollection(database.defaultCollection, null)")
)
public constructor(database: Database, target: Endpoint)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private constructor(
@Suppress("DEPRECATION")
@Deprecated(
"Use ReplicatorConfiguration(Endpoint)",
ReplaceWith("ReplicatorConfiguration(target)")
ReplaceWith("ReplicatorConfiguration(target).addCollection(database.defaultCollection, null)")
)
public actual constructor(database: Database, target: Endpoint) : this(
CBLReplicatorConfiguration(database.actual, target.actual),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private constructor(

@Deprecated(
"Use ReplicatorConfiguration(Endpoint)",
ReplaceWith("ReplicatorConfiguration(target)")
ReplaceWith("ReplicatorConfiguration(target).addCollection(database.defaultCollection, null)")
)
public actual constructor(database: Database, target: Endpoint) : this(target, database) {
addCollection(database.defaultCollection, null)
Expand Down

0 comments on commit 5fa3de6

Please sign in to comment.