Skip to content

Commit 7ce8e0f

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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ internal data class AnonymousUser(private val accountType: String) :
4949
override val server = Server(URI.create(""), MainApp.MINIMUM_SUPPORTED_SERVER_VERSION)
5050
override val isAnonymous = true
5151

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

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

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

0 commit comments

Comments
 (0)