-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Refactoring to 17 java style #16706
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
base: trunk
Are you sure you want to change the base?
Refactoring to 17 java style #16706
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 |
||||||||||||||||||||||||||||||||||
|
Thank you, @sbushmelev for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
|
We still support Java 11: Line 32 in 3b1b226
|
|
@sbushmelev Thank you. Unfortunately, currently Selenium must support Java 11. |
💥 What does this PR do?
Refactoring to 17 java style
🔄 Types of changes
PR Type
Enhancement
Description
Modernize Java code to Java 17 style conventions
Convert switch statements to enhanced switch expressions
Reorganize imports to follow Java conventions
Refactor string formatting to use text blocks
Improve code indentation and formatting consistency
Diagram Walkthrough
File Walkthrough
BrowsingContextInfo.java
Convert switch to enhanced switch expressionsjava/src/org/openqa/selenium/bidi/browsingcontext/BrowsingContextInfo.java
switch expressions using arrow syntax
braces
ThreadGuard.java
Modernize imports, formatting, and string handlingjava/src/org/openqa/selenium/support/ThreadGuard.java
library imports