René's URL Explorer Experiment


Title: SONARJAVA-7188 SONARJAVA-4606 Improvements for the rule S7158 by asya-vorobeva · Pull Request #6359 · SonarSource/sonar-java · GitHub

Open Graph Title: SONARJAVA-7188 SONARJAVA-4606 Improvements for the rule S7158 by asya-vorobeva · Pull Request #6359 · SonarSource/sonar-java

X Title: SONARJAVA-7188 SONARJAVA-4606 Improvements for the rule S7158 by asya-vorobeva · Pull Request #6359 · SonarSource/sonar-java

Description: :coffee: SonarSource Static Analyzer for Java Code Quality and Security - SONARJAVA-7188 SONARJAVA-4606 Improvements for the rule S7158 by asya-vorobeva · Pull Request #6359 · SonarSource/sonar-java

Open Graph Description: Detect zero literals written in any base Suggest "isBlank()" for "strip().length()" and "trim().length()" comparisons

X Description: Detect zero literals written in any base Suggest "isBlank()" for "strip().length()" and "trim().length()" comparisons

Opengraph URL: https://github.com/SonarSource/sonar-java/pull/6359

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4b35e073-07a1-3b2c-63f4-66828908c99d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD284:195CE:2C1F75:39CDBE:6AFE4CFA
html-safe-nonce327806ab10ee718744a396a4a7457f10f67aeb61d869bbf0a86b468d04879f03
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjg0OjE5NUNFOjJDMUY3NTozOUNEQkU6NkFGRTRDRkEiLCJ2aXNpdG9yX2lkIjoiNDQ5MzIzMjc5MzU4ODc0NzUxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac076b5e861f5272e7389c552e1bee225734a26f64946d32c98b494d3e0c8b6975
hovercard-subject-tagpull_request:4869372127
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/SonarSource/sonar-java/6359/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cfad7d505e82f57f5645730a806cc1d0d2ad0d33251f7355f9f4d33b089a04a3/SonarSource/sonar-java/pull/6359
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cfad7d505e82f57f5645730a806cc1d0d2ad0d33251f7355f9f4d33b089a04a3/SonarSource/sonar-java/pull/6359
og:image:altDetect zero literals written in any base Suggest "isBlank()" for "strip().length()" and "trim().length()" comparisons
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameasya-vorobeva
hostnamegithub.com
expected-hostnamegithub.com
None894d3c8b932306ed8425e8dcbe0c1089667e487c5fe7b8a05d17e7b685207429
turbo-cache-controlno-cache
go-importgithub.com/SonarSource/sonar-java git https://github.com/SonarSource/sonar-java.git
octolytics-dimension-user_id545988
octolytics-dimension-user_loginSonarSource
octolytics-dimension-repository_id5674787
octolytics-dimension-repository_nwoSonarSource/sonar-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5674787
octolytics-dimension-repository_network_root_nwoSonarSource/sonar-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release44570ad53e12be09be8000af683c29166c4007cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/SonarSource/sonar-java/pull/6359#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSonarSource%2Fsonar-java%2Fpull%2F6359
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSonarSource%2Fsonar-java%2Fpull%2F6359
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=SonarSource%2Fsonar-java
Reloadhttps://github.com/SonarSource/sonar-java/pull/6359
Reloadhttps://github.com/SonarSource/sonar-java/pull/6359
Reloadhttps://github.com/SonarSource/sonar-java/pull/6359
SonarSourcehttps://github.com/SonarSource
sonar-javahttps://github.com/SonarSource/sonar-java
Codehttps://github.com/SonarSource/sonar-java
Pull requests25 (25)https://github.com/SonarSource/sonar-java/pulls
Actionshttps://github.com/SonarSource/sonar-java/actions
Wikihttps://github.com/SonarSource/sonar-java/wiki
Security and qualityhttps://github.com/SonarSource/sonar-java/security
Insightshttps://github.com/SonarSource/sonar-java/insights
https://github.com/SonarSource/sonar-java
asya-vorobevahttps://github.com/asya-vorobeva
masterhttps://github.com/SonarSource/sonar-java/tree/master
asya/improve-s7158https://github.com/SonarSource/sonar-java/tree/asya/improve-s7158
Conversationhttps://github.com/SonarSource/sonar-java/pull/6359
Commits5 (5)https://github.com/SonarSource/sonar-java/pull/6359/commits
Checkshttps://github.com/SonarSource/sonar-java/pull/6359/checks
Files changedhttps://github.com/SonarSource/sonar-java/pull/6359/files
SONARJAVA-7188 SONARJAVA-4606 Improvements for the rule S7158https://github.com/SonarSource/sonar-java/pull/6359#top
asya-vorobevahttps://github.com/asya-vorobeva
masterhttps://github.com/SonarSource/sonar-java/tree/master
asya/improve-s7158https://github.com/SonarSource/sonar-java/tree/asya/improve-s7158
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
Oct 15, 2026https://github.com/SonarSource/sonar-java/pull/6359#issue-5861508703
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
asya-vorobevahttps://github.com/asya-vorobeva
October 14, 2026 15:31https://github.com/SonarSource/sonar-java/pull/6359#commits-pushed-4373bf4
https://github.com/asya-vorobeva
https://github.com/claude
SONARJAVA-7188https://sonarsource.atlassian.net/browse/SONARJAVA-7188
S7158: Detect zero literals written in any basehttps://github.com/SonarSource/sonar-java/pull/6359/commits/4373bf4a0bb7d2409e478f26c0b27aef62b214c6
4373bf4https://github.com/SonarSource/sonar-java/pull/6359/commits/4373bf4a0bb7d2409e478f26c0b27aef62b214c6
https://github.com/asya-vorobeva
https://github.com/claude
SONARJAVA-4606https://sonarsource.atlassian.net/browse/SONARJAVA-4606
S7158: Suggest "isBlank()" for "trim().length()" compa…https://github.com/SonarSource/sonar-java/pull/6359/commits/b049767d1d3063a5b440b9569d52452bda385581
b049767https://github.com/SonarSource/sonar-java/pull/6359/commits/b049767d1d3063a5b440b9569d52452bda385581
https://github.com/apps/hashicorp-vault-sonar-prod
hashicorp-vault-sonar-prodhttps://github.com/apps/hashicorp-vault-sonar-prod
Oct 15, 2026https://github.com/SonarSource/sonar-java/pull/6359#issuecomment-6186243148
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
SONARJAVA-7188https://sonarsource.atlassian.net/browse/SONARJAVA-7188
SONARJAVA-4606https://sonarsource.atlassian.net/browse/SONARJAVA-4606
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
https://github.com/apps/gitar-bot
gitar-bothttps://github.com/apps/gitar-bot
Oct 15, 2026 https://github.com/SonarSource/sonar-java/pull/6359#pullrequestreview-5529249327
View reviewed changes https://github.com/SonarSource/sonar-java/pull/6359/files/b049767d1d3063a5b440b9569d52452bda385581
java-checks/src/main/java/org/sonar/java/checks/StringIsEmptyCheck.javahttps://github.com/SonarSource/sonar-java/pull/6359/files/b049767d1d3063a5b440b9569d52452bda385581#diff-6dd0828f049f06067539e00a865898f13bbecc610618d4d74dd84a0b39e4fbed
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
asya-vorobevahttps://github.com/asya-vorobeva
October 15, 2026 11:24https://github.com/SonarSource/sonar-java/pull/6359#commits-pushed-4dae062
https://github.com/asya-vorobeva
https://github.com/claude
SONARJAVA-4606https://sonarsource.atlassian.net/browse/SONARJAVA-4606
S7158: Also suggest "isBlank()" for "strip().length()"…https://github.com/SonarSource/sonar-java/pull/6359/commits/4dae062b6ef52d604b4187cb5dd63a84505b2dfa
4dae062https://github.com/SonarSource/sonar-java/pull/6359/commits/4dae062b6ef52d604b4187cb5dd63a84505b2dfa
https://github.com/asya-vorobeva
Fix for QGhttps://github.com/SonarSource/sonar-java/pull/6359/commits/e7435b576df7d680114ed7561abc82999515bdff
e7435b5https://github.com/SonarSource/sonar-java/pull/6359/commits/e7435b576df7d680114ed7561abc82999515bdff
https://github.com/lijun-chen-sonarsource
lijun-chen-sonarsourcehttps://github.com/lijun-chen-sonarsource
Oct 16, 2026 https://github.com/SonarSource/sonar-java/pull/6359#pullrequestreview-5546110894
View reviewed changes https://github.com/SonarSource/sonar-java/pull/6359/files/e7435b576df7d680114ed7561abc82999515bdff
lijun-chen-sonarsourcehttps://github.com/lijun-chen-sonarsource
https://github.com/SonarSource/sonar-java/pull/6359#pullrequestreview-5546110894
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
java-checks/src/test/java/org/sonar/java/checks/StringIsEmptyCheckTest.javahttps://github.com/SonarSource/sonar-java/pull/6359/files/e7435b576df7d680114ed7561abc82999515bdff#diff-a452c7f09340a4a85fbb49620e761d504470fa0a0e7cb7455936c04e0fbf2acb
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
https://github.com/asya-vorobeva
https://github.com/claude
SONARJAVA-4606https://sonarsource.atlassian.net/browse/SONARJAVA-4606
S7158: Cover the pre-Java-11 behaviour with a testhttps://github.com/SonarSource/sonar-java/pull/6359/commits/90954046a12e1eb3d732f64600a6631456151193
9095404https://github.com/SonarSource/sonar-java/pull/6359/commits/90954046a12e1eb3d732f64600a6631456151193
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
October 16, 2026 10:32https://github.com/SonarSource/sonar-java/pull/6359#event-33435763787
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
Oct 16, 2026 https://github.com/SonarSource/sonar-java/pull/6359#ref-pullrequest-5816261666
SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blank #6332 https://github.com/SonarSource/sonar-java/pull/6332
https://github.com/apps/sonarqube-next
sonarqube-nexthttps://github.com/apps/sonarqube-next
Oct 16, 2026https://github.com/SonarSource/sonar-java/pull/6359#issuecomment-6213709150
https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.java%3Ajava&pullRequest=6359
https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6359&resolved=false
0 New issueshttps://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6359&resolved=false
https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&fixedInPullRequest=6359
0 Fixed issueshttps://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&fixedInPullRequest=6359
https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6359&issueStatuses=ACCEPTED
0 Accepted issueshttps://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=6359&issueStatuses=ACCEPTED
https://next.sonarqube.com/sonarqube/security_hotspots?id=org.sonarsource.java%3Ajava&pullRequest=6359
0 Security Hotspotshttps://next.sonarqube.com/sonarqube/security_hotspots?id=org.sonarsource.java%3Ajava&pullRequest=6359
https://next.sonarqube.com/sonarqube/dependency-risks?id=org.sonarsource.java%3Ajava&pullRequest=6359&riskStatuses=OPEN%2CCONFIRM
0 Dependency riskshttps://next.sonarqube.com/sonarqube/dependency-risks?id=org.sonarsource.java%3Ajava&pullRequest=6359&riskStatuses=OPEN%2CCONFIRM
https://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6359&metric=new_coverage&view=list
98.2% Coverage on New Codehttps://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6359&metric=new_coverage&view=list
https://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6359&metric=new_duplicated_lines_density&view=list
0.0% Duplication on New Codehttps://next.sonarqube.com/sonarqube/component_measures?id=org.sonarsource.java%3Ajava&pullRequest=6359&metric=new_duplicated_lines_density&view=list
See analysis details on SonarQubehttps://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.java%3Ajava&pullRequest=6359
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
https://github.com/apps/gitar-bot
gitar-bothttps://github.com/apps/gitar-bot
Oct 16, 2026https://github.com/SonarSource/sonar-java/pull/6359#issuecomment-6213716323
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
#6332https://github.com/SonarSource/sonar-java/pull/6332
SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blank #6332https://github.com/SonarSource/sonar-java/pull/6332
SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blank #6332https://github.com/SonarSource/sonar-java/pull/6332
#6332https://github.com/SonarSource/sonar-java/pull/6332
SonarSource/sonarlint-vscodehttps://github.com/SonarSource/sonarlint-vscode
SonarSource/sonarlint-language-serverhttps://github.com/SonarSource/sonarlint-language-server
SonarSource/sonarlint-intellijhttps://github.com/SonarSource/sonarlint-intellij
PR #6332: SONARJAVA-7157: Implemented rule S9432 Strings should not be trimmed or stripped just to check if they are blankhttps://github.com/SonarSource/sonar-java/pull/6332
Set uphttps://docs.gitar.ai/features/code-review/auto-approve
Gitarhttps://gitar.ai
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
47dfacdhttps://github.com/SonarSource/sonar-java/commit/47dfacd07a521b9a3762065c4201f384705f44dd
Oct 16, 2026https://github.com/SonarSource/sonar-java/pull/6359#event-33437119320
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
https://github.com/asya-vorobeva
asya-vorobevahttps://github.com/asya-vorobeva
October 16, 2026 10:50https://github.com/SonarSource/sonar-java/pull/6359#event-33437122342
https://github.co/hiddenchars
https://github.com/SonarSource/sonar-java/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSonarSource%2Fsonar-java%2Fpull%2F6359
https://github.com/apps/gitar-bot
gitar-bot[bot] https://github.com/apps/gitar-bot
https://github.com/SonarSource/sonar-java/pull/6359/files/4dae062b6ef52d604b4187cb5dd63a84505b2dfa
https://github.com/lijun-chen-sonarsource
lijun-chen-sonarsource https://github.com/lijun-chen-sonarsource
https://github.com/SonarSource/sonar-java/pull/6359/files/e7435b576df7d680114ed7561abc82999515bdff
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
Please reload this pagehttps://github.com/SonarSource/sonar-java/pull/6359
https://github.com/asya-vorobeva
https://github.com/lijun-chen-sonarsource
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.