-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
add nullability annotations in "*.bidi.log" package #16679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add nullability annotations in "*.bidi.log" package #16679
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
702faf8 to
484e2ae
Compare
User description
🔗 Related Issues
This would help to avoid issues like this.
💥 What does this PR do?
adds
@NullMarkedand@Nullableannotations to "*.bidi.log" package.🔄 Types of changes
PR Type
Enhancement
Description
Add nullability annotations using JSpecify to bidi.log package
Mark StackTrace parameter as @nullable in constructors
Add null-check before serializing stackTrace in toJson methods
Create package-info.java with @NullMarked annotation
Update test imports to use modern AssertJ API
Diagram Walkthrough
File Walkthrough
BaseLogEntry.java
Add nullability annotations to BaseLogEntryjava/src/org/openqa/selenium/bidi/log/BaseLogEntry.java
ConsoleLogEntry.java
Add nullability annotation to ConsoleLogEntryjava/src/org/openqa/selenium/bidi/log/ConsoleLogEntry.java
GenericLogEntry.java
Add nullability annotation and null-check to GenericLogEntryjava/src/org/openqa/selenium/bidi/log/GenericLogEntry.java
JavascriptLogEntry.java
Add nullability annotation and null-check to JavascriptLogEntryjava/src/org/openqa/selenium/bidi/log/JavascriptLogEntry.java
package-info.java
Create package-info with @NullMarked annotationjava/src/org/openqa/selenium/bidi/log/package-info.java
default
LogInspectorTest.java
Update test imports to modern AssertJ APIjava/test/org/openqa/selenium/bidi/log/LogInspectorTest.java
BUILD.bazel
Add JSpecify dependency to BUILD configurationjava/src/org/openqa/selenium/bidi/log/BUILD.bazel