|
24 | 24 | import java.util.Map;
|
25 | 25 | import java.util.Optional;
|
26 | 26 | import java.util.UUID;
|
| 27 | +import org.jspecify.annotations.NullMarked; |
| 28 | +import org.jspecify.annotations.Nullable; |
27 | 29 | import org.openqa.selenium.Point;
|
28 | 30 | import org.openqa.selenium.WebElement;
|
29 | 31 | import org.openqa.selenium.WrapsElement;
|
|
33 | 35 | * Models a <a href="https://www.w3.org/TR/webdriver/#dfn-pointer-input-source">pointer input
|
34 | 36 | * source</a>.
|
35 | 37 | */
|
| 38 | +@NullMarked |
36 | 39 | public class PointerInput implements InputSource, Encodable {
|
37 | 40 |
|
38 | 41 | private final Kind kind;
|
39 | 42 | private final String name;
|
40 | 43 |
|
41 |
| - public PointerInput(Kind kind, String name) { |
| 44 | + public PointerInput(Kind kind, @Nullable String name) { |
42 | 45 | this.kind = Require.nonNull("Kind of pointer device", kind);
|
43 | 46 | this.name = Optional.ofNullable(name).orElse(UUID.randomUUID().toString());
|
44 | 47 | }
|
@@ -283,15 +286,15 @@ public static PointerEventProperties eventProperties() {
|
283 | 286 | }
|
284 | 287 |
|
285 | 288 | public static class PointerEventProperties implements Encodable {
|
286 |
| - private Float width = null; |
287 |
| - private Float height = null; |
288 |
| - private Float pressure = null; |
289 |
| - private Float tangentialPressure = null; |
290 |
| - private Integer tiltX = null; |
291 |
| - private Integer tiltY = null; |
292 |
| - private Integer twist = null; |
293 |
| - private Float altitudeAngle = null; |
294 |
| - private Float azimuthAngle = null; |
| 289 | + private @Nullable Float width = null; |
| 290 | + private @Nullable Float height = null; |
| 291 | + private @Nullable Float pressure = null; |
| 292 | + private @Nullable Float tangentialPressure = null; |
| 293 | + private @Nullable Integer tiltX = null; |
| 294 | + private @Nullable Integer tiltY = null; |
| 295 | + private @Nullable Integer twist = null; |
| 296 | + private @Nullable Float altitudeAngle = null; |
| 297 | + private @Nullable Float azimuthAngle = null; |
295 | 298 |
|
296 | 299 | public PointerEventProperties setWidth(float width) {
|
297 | 300 | Require.nonNull("width", width);
|
|
0 commit comments