Skip to content

Remove unnecessary uses of TextUtils methods in Kotlin code.

Description

Replace usages of TextUtils methods, such as equals and isEmpty, in Kotlin code with Kotlin methods or operators.

Motivation and Context

Kotlin provides methods and optimizations that make the aforementioned TextUtils methods unnecessary.

For instance, a == b translates to a?.equals(b) ?: (b === null).

How Has This Been Tested?

Screenshots / GIFs (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking change which cleans up / improves existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the CONTRIBUTING section of the README document.

Resolves

Edited by Isira Seneviratne

Merge request reports

Loading