OSDN Git Service

Simplify equals() method of ServiceState
authorNathan Harold <nharold@google.com>
Thu, 28 Jun 2018 00:21:17 +0000 (17:21 -0700)
committerNathan Harold <nharold@google.com>
Thu, 28 Jun 2018 01:55:49 +0000 (18:55 -0700)
commit7ee5f2185dd62f6a5a05dfce3ab5712069e0505a
tree7b1ee3dc4d67bad794962bc077a25b118e773f16
parentb220fde2965de29694222e3607f0425cf77429ae
Simplify equals() method of ServiceState

For whatever reason, ServiceState used a
somewhat-convoluted check for null and
class type. Updating to use a canonical
and brief approach.

Bug: 8675309
Test: compilation
Change-Id: I0d635067a06093affff478e13c28bbbe2bfda7df
telephony/java/android/telephony/ServiceState.java