Fix checkstyle errors (2/2)
* Manual style corrections with IDE assistance
* Variable name refactors are done through IDE
* Corrected general style errors such as:
- "final private var" -> "private final var"
- "&&", "+", "||" should not be at the end of line
- Non-static private variable should be like "mVar"
- Private static variable should be like "sVar"
- Code file should always end with newline
- Inherited methods should be annotated with @Override
and no @hide tags
- Public methods should always have a JavaDoc entry
- "int[] array" is preferred over "int array[]"
- private methods should be accessed without "this."
when there is no name collisions.
- "boolean ? true : false" -> boolean
- "boolean ? false : true" -> !boolean
- "boolean == true" OR "boolean != false" -> boolean
- "boolean != true" OR "boolean == false" -> !boolean
Bug: 63596319
Test: make checkbuild, no functional changes
Change-Id: Iabdc2be912a32dd63a53213d175cf1bfef268ccd
diff --git a/core/java/android/bluetooth/SdpSapsRecord.java b/core/java/android/bluetooth/SdpSapsRecord.java
index 1904118..a1e2f7b 100644
--- a/core/java/android/bluetooth/SdpSapsRecord.java
+++ b/core/java/android/bluetooth/SdpSapsRecord.java
@@ -25,18 +25,16 @@
private final int mProfileVersion;
private final String mServiceName;
- public SdpSapsRecord(int rfcomm_channel_number,
- int profile_version,
- String service_name) {
- this.mRfcommChannelNumber = rfcomm_channel_number;
- this.mProfileVersion = profile_version;
- this.mServiceName = service_name;
+ public SdpSapsRecord(int rfcommChannelNumber, int profileVersion, String serviceName) {
+ mRfcommChannelNumber = rfcommChannelNumber;
+ mProfileVersion = profileVersion;
+ mServiceName = serviceName;
}
public SdpSapsRecord(Parcel in) {
- this.mRfcommChannelNumber = in.readInt();
- this.mProfileVersion = in.readInt();
- this.mServiceName = in.readString();
+ mRfcommChannelNumber = in.readInt();
+ mProfileVersion = in.readInt();
+ mServiceName = in.readString();
}
@Override
@@ -58,9 +56,9 @@
@Override
public void writeToParcel(Parcel dest, int flags) {
- dest.writeInt(this.mRfcommChannelNumber);
- dest.writeInt(this.mProfileVersion);
- dest.writeString(this.mServiceName);
+ dest.writeInt(mRfcommChannelNumber);
+ dest.writeInt(mProfileVersion);
+ dest.writeString(mServiceName);
}