1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 07:56:19 +00:00

Fix lint warnings

This commit is contained in:
Hannes Achleitner 2022-01-31 06:58:50 +01:00
parent 5bebbe2d3d
commit 7365c0b126
2 changed files with 3 additions and 3 deletions

View File

@ -41,13 +41,13 @@ object LogBuilder {
enum class NetworkPetition {
REQUEST, RESPONSE;
override fun toString(): String = super.toString().toLowerCase(Locale.ROOT)
override fun toString(): String = super.toString().lowercase(Locale.ROOT)
}
enum class NetworkNode {
INFO, HEADER, BODY;
override fun toString(): String = super.toString().toLowerCase(Locale.ROOT)
override fun toString(): String = super.toString().lowercase(Locale.ROOT)
}
/**

View File

@ -74,7 +74,7 @@ class GetRemoteCapabilitiesOperation : RemoteOperation<RemoteCapability>() {
val moshi: Moshi = Moshi.Builder().build()
val type: Type = Types.newParameterizedType(CommonOcsResponse::class.java, CapabilityResponse::class.java)
val adapter: JsonAdapter<CommonOcsResponse<CapabilityResponse>> = moshi.adapter(type)
val commonResponse: CommonOcsResponse<CapabilityResponse>? = adapter.fromJson(response)
val commonResponse: CommonOcsResponse<CapabilityResponse>? = response?.let { adapter.fromJson(it) }
result = RemoteOperationResult(OK)
result.data = commonResponse?.ocs?.data?.toRemoteCapability()