Style change examples:
Before: (notice as
)
bitmapMemoryCacheParamsSupplier =
builder.bitmapMemoryCacheParamsSupplier
?: DefaultBitmapMemoryCacheParamsSupplier(
(checkNotNull(builder.context.getSystemService(Context.ACTIVITY_SERVICE)) as
ActivityManager))
After:
bitmapMemoryCacheParamsSupplier =
builder.bitmapMemoryCacheParamsSupplier
?: DefaultBitmapMemoryCacheParamsSupplier(
(checkNotNull(builder.context.getSystemService(Context.ACTIVITY_SERVICE))
as ActivityManager))
Before: (notice imports
)
importCleanUpCandidates =
importList
.imports
.filter { import ->
import.isValidImport &&
!import.isAllUnder &&
import.identifier != null &&
requireNotNull(import.identifier) !in OPERATORS &&
!COMPONENT_OPERATOR_REGEX.matches(import.identifier.orEmpty())
}
.toSet()
After:
importCleanUpCandidates =
importList.imports
.filter { import ->
import.isValidImport &&
!import.isAllUnder &&
import.identifier != null &&
requireNotNull(import.identifier) !in OPERATORS &&
!COMPONENT_OPERATOR_REGEX.matches(import.identifier.orEmpty())
}
.toSet()