Remove useless exception declaration

The interface declares it can throw a RemoteException, but the
implementation never throws such exception.
This commit is contained in:
Romain Vimont 2020-05-23 18:21:54 +02:00
parent e1cd75792c
commit 73e722784d

View file

@ -54,7 +54,7 @@ public final class Device {
serviceManager.getWindowManager().registerRotationWatcher(new IRotationWatcher.Stub() {
@Override
public void onRotationChanged(int rotation) throws RemoteException {
public void onRotationChanged(int rotation) {
synchronized (Device.this) {
screenInfo = screenInfo.withDeviceRotation(rotation);