1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43<!-- Guidance for AI agents working in Selenium Java Bindings and Grid. -->
## Code location
- Java Bindings: `java/src/`, `java/test/`
- Grid Server: `java/src/org/openqa/selenium/grid/`
## Common commands
- Build: `bazel build //java/...`
- Build Grid: `bazel build grid`
## Testing
See `java/TESTING.md`
## Code conventions
### Logging
```java
import java.util.logging.Logger;
private static final Logger LOG = Logger.getLogger(MyClass.class.getName());
LOG.warning("actionable: something needs attention");
LOG.info("useful: server started on port 4444");
LOG.fine("diagnostic: request details for debugging");
```
### Deprecation
```java
@Deprecated(forRemoval = true)
public void legacyMethod() { }
```
### Documentation
Use Javadoc for public APIs:
```java
/**
* Brief description.
*
* @param name description
* @return description
* @throws ExceptionType when condition
*/
```