mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Fix lint warnings
This commit is contained in:
		
							parent
							
								
									5bebbe2d3d
								
							
						
					
					
						commit
						7365c0b126
					
				| @ -41,13 +41,13 @@ object LogBuilder { | |||||||
| enum class NetworkPetition { | enum class NetworkPetition { | ||||||
|     REQUEST, RESPONSE; |     REQUEST, RESPONSE; | ||||||
| 
 | 
 | ||||||
|     override fun toString(): String = super.toString().toLowerCase(Locale.ROOT) |     override fun toString(): String = super.toString().lowercase(Locale.ROOT) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| enum class NetworkNode { | enum class NetworkNode { | ||||||
|     INFO, HEADER, BODY; |     INFO, HEADER, BODY; | ||||||
| 
 | 
 | ||||||
|     override fun toString(): String = super.toString().toLowerCase(Locale.ROOT) |     override fun toString(): String = super.toString().lowercase(Locale.ROOT) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | |||||||
| @ -74,7 +74,7 @@ class GetRemoteCapabilitiesOperation : RemoteOperation<RemoteCapability>() { | |||||||
|                 val moshi: Moshi = Moshi.Builder().build() |                 val moshi: Moshi = Moshi.Builder().build() | ||||||
|                 val type: Type = Types.newParameterizedType(CommonOcsResponse::class.java, CapabilityResponse::class.java) |                 val type: Type = Types.newParameterizedType(CommonOcsResponse::class.java, CapabilityResponse::class.java) | ||||||
|                 val adapter: JsonAdapter<CommonOcsResponse<CapabilityResponse>> = moshi.adapter(type) |                 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 = RemoteOperationResult(OK) | ||||||
|                 result.data = commonResponse?.ocs?.data?.toRemoteCapability() |                 result.data = commonResponse?.ocs?.data?.toRemoteCapability() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user