You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java] specify nullability in package org.openqa.selenium.bidi.network - #17061
The method input.readMapElement() does not exist. Replace it with correct JSON parsing logic to read the 'content' map and safely extract the 'size' value.
Why: The suggestion correctly identifies that input.readMapElement("size") is not a valid method in the JsonInput API, which would cause a compilation failure. It provides a robust and correct fix.
High
General
Validate bodySize non-negative
Add a validation check to ensure the bodySize field, if not null, is a non-negative value, similar to the check for headersSize.
Why: The suggestion correctly proposes adding a non-negative check for bodySize, which is consistent with how headersSize is handled in the same constructor and improves data integrity.
Medium
Return immutable list values
In the toMap method, wrap the phases and urlPatterns lists with List.copyOf to ensure the returned map contains immutable collections.
Why: The suggestion improves immutability by making defensive copies of the lists before they are put into the unmodifiable map, which is a good practice to prevent modification of the class's internal state.
Low
Serialize enum as string
When serializing the sameSite field, explicitly convert the enum to its string representation by calling sameSite.toString().
Why: The suggestion correctly points out that an enum should be converted to a string for serialization. While map.put("sameSite", sameSite) might work implicitly, explicitly calling .toString() is clearer and safer.
asolntsev
changed the title
specify nullability in package org.openqa.selenium.bidi.network
[java] specify nullability in package org.openqa.selenium.bidi.networkFeb 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issues
Part of #14291
💥 What does this PR do?
Marks the whole package
org.openqa.selenium.bidi.networkas non-nullable by default.🔄 Types of changes