Skip to content

Commit 3160ced

Browse files
chore: add deprecation warnings to overrides in MockUser
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 7ce8e0f commit 3160ced

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • app/src/main/java/com/nextcloud/client/account

app/src/main/java/com/nextcloud/client/account/MockUser.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ data class MockUser(override val accountName: String, val accountType: String) :
4444
override val server = Server(URI.create(""), MainApp.MINIMUM_SUPPORTED_SERVER_VERSION)
4545
override val isAnonymous = false
4646

47+
@Deprecated("Temporary workaround: Legacy Android Account access. Refactor code to use User object directly instead of platform Account.")
4748
override fun toPlatformAccount(): Account = Account(accountName, accountType)
4849

50+
@Deprecated("Temporary workaround: Legacy OwnCloudAccount access. Refactor code to use User object directly instead of OwnCloudAccount.")
4951
override fun toOwnCloudAccount(): OwnCloudAccount = OwnCloudAccount(Uri.EMPTY, OwnCloudBasicCredentials("", ""))
5052

5153
override fun nameEquals(user: User?): Boolean = user?.accountName.equals(accountName, true)

0 commit comments

Comments
 (0)