Skip to content

Commit

Permalink
Remove useless exception declaration
Browse files Browse the repository at this point in the history
The interface declares it can throw a RemoteException, but the
implementation never throws such exception.
  • Loading branch information
rom1v committed May 23, 2020
1 parent e1cd757 commit 73e7227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/com/genymobile/scrcpy/Device.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Device(Options options) {

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);

Expand Down

0 comments on commit 73e7227

Please sign in to comment.