diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-08-24 21:25:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-08-24 21:25:49 +0000 |
commit | 94bbd4256d7261aa1d8ddf660e7856cde5afa49f (patch) | |
tree | 8299c300f3b4dbc2a5360c3319ac41bf1b389e55 /framework/java/android/bluetooth/BluetoothGattIncludedService.java | |
parent | 931010f176faa894f06051c57290f7723dfbcd49 (diff) | |
parent | 9e045d26d0128826b40520f523307d8d16473779 (diff) |
Merge changes from topic "bt-fix-checkstyle-errors"
* changes:
Fix checkstyle errors (2/2)
Fix checkstyle errors (1/2)
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothGattIncludedService.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothGattIncludedService.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGattIncludedService.java b/framework/java/android/bluetooth/BluetoothGattIncludedService.java index 155dc571d2..bccf20ef96 100644 --- a/framework/java/android/bluetooth/BluetoothGattIncludedService.java +++ b/framework/java/android/bluetooth/BluetoothGattIncludedService.java @@ -16,14 +16,14 @@ package android.bluetooth; import android.os.Parcel; -import android.os.Parcelable; import android.os.ParcelUuid; -import java.util.ArrayList; -import java.util.List; +import android.os.Parcelable; + import java.util.UUID; /** * Represents a Bluetooth GATT Included Service + * * @hide */ public class BluetoothGattIncludedService implements Parcelable { @@ -52,18 +52,20 @@ public class BluetoothGattIncludedService implements Parcelable { mServiceType = serviceType; } + @Override public int describeContents() { return 0; } + @Override public void writeToParcel(Parcel out, int flags) { out.writeParcelable(new ParcelUuid(mUuid), 0); out.writeInt(mInstanceId); out.writeInt(mServiceType); - } + } - public static final Parcelable.Creator<BluetoothGattIncludedService> CREATOR - = new Parcelable.Creator<BluetoothGattIncludedService>() { + public static final Parcelable.Creator<BluetoothGattIncludedService> CREATOR = + new Parcelable.Creator<BluetoothGattIncludedService>() { public BluetoothGattIncludedService createFromParcel(Parcel in) { return new BluetoothGattIncludedService(in); } @@ -74,7 +76,7 @@ public class BluetoothGattIncludedService implements Parcelable { }; private BluetoothGattIncludedService(Parcel in) { - mUuid = ((ParcelUuid)in.readParcelable(null)).getUuid(); + mUuid = ((ParcelUuid) in.readParcelable(null)).getUuid(); mInstanceId = in.readInt(); mServiceType = in.readInt(); } |