Remove a few left-over @FutureFeature markers from diagnostics API
Test: build & sync
Change-Id: I37fcfda1e4db38929ddce08e7ed1f4a5781a292d
diff --git a/service/src/com/android/car/CarDiagnosticService.java b/service/src/com/android/car/CarDiagnosticService.java
index 2d7b7c2..b10e5a8 100644
--- a/service/src/com/android/car/CarDiagnosticService.java
+++ b/service/src/com/android/car/CarDiagnosticService.java
@@ -46,7 +46,6 @@
import java.util.Set;
import java.util.concurrent.locks.ReentrantLock;
-@FutureFeature
/** @hide */
public class CarDiagnosticService extends ICarDiagnostic.Stub
implements CarServiceBase, DiagnosticHalService.DiagnosticListener {
@@ -501,12 +500,9 @@
@Override
public boolean equals(Object o) {
- if (o instanceof CarDiagnosticService.DiagnosticClient
- && mListener.asBinder()
- == ((CarDiagnosticService.DiagnosticClient) o).mListener.asBinder()) {
- return true;
- }
- return false;
+ return o instanceof DiagnosticClient
+ && mListener.asBinder()
+ == ((DiagnosticClient) o).mListener.asBinder();
}
boolean isHoldingListenerBinder(IBinder listenerBinder) {
@@ -541,16 +537,12 @@
}
void dispatchDiagnosticUpdate(List<CarDiagnosticEvent> events) {
- if (events.size() == 0) {
- return;
- }
- if (mActive) {
+ if (events.size() != 0 && mActive) {
try {
mListener.onDiagnosticEvents(events);
} catch (RemoteException e) {
//ignore. crash will be handled by death handler
}
- } else {
}
}