Skip to content

Display and control your Android device

Move annotation comment

Romain Vimonte85010fbc275
diff --git a/server/src/main/java/com/genymobile/scrcpy/Device.java b/server/src/main/java/com/genymobile/scrcpy/Device.java
index b9b8bb71..124c84a4 100644
--- a/server/src/main/java/com/genymobile/scrcpy/Device.java
+++ b/server/src/main/java/com/genymobile/scrcpy/Device.java
@@ -77,7 +77,8 @@ public final class Device {
}
public Point getPhysicalPoint(Position position) {
- @SuppressWarnings("checkstyle:HiddenField") // it hides the field on purpose, to read it with a lock
+ // it hides the field on purpose, to read it with a lock
+ @SuppressWarnings("checkstyle:HiddenField")
ScreenInfo screenInfo = getScreenInfo(); // read with synchronization
Size videoSize = screenInfo.getVideoSize();
Size clientVideoSize = position.getScreenSize();