René's URL Explorer Experiment


Title: extract method does not seem to like var nor method references · Issue #1956 · redhat-developer/vscode-java · GitHub

Open Graph Title: extract method does not seem to like var nor method references · Issue #1956 · redhat-developer/vscode-java

X Title: extract method does not seem to like var nor method references · Issue #1956 · redhat-developer/vscode-java

Description: void somemethod() { var gson = new GsonBuilder().setPrettyPrinting().create(); List aliasItems = new ArrayList<>(); List templateItems = new ArrayList<>(); PagedSearchIterable ghContents = gitHub.sear...

Open Graph Description: void somemethod() { var gson = new GsonBuilder().setPrettyPrinting().create(); List aliasItems = new ArrayList<>(); List templateItems = new ArrayList<>(); PagedSearchIter...

X Description: void somemethod() { var gson = new GsonBuilder().setPrettyPrinting().create(); List<CatalogItem> aliasItems = new ArrayList<>(); List<CatalogItem> templateItems = new ArrayList<...

Opengraph URL: https://github.com/redhat-developer/vscode-java/issues/1956

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"extract method does not seem to like var nor method references","articleBody":"```java\r\nvoid somemethod() {\r\nvar gson = new GsonBuilder().setPrettyPrinting().create();\r\nList\u003cCatalogItem> aliasItems = new ArrayList\u003c>();\r\nList\u003cCatalogItem> templateItems = new ArrayList\u003c>();\r\nPagedSearchIterable\u003cGHContent> ghContents = gitHub.searchContent().filename(\"jbang-catalog.json\").extension(\".json\")\r\n        .list().withPageSize(500);\r\nfor (GHContent content : ghContents) {\r\n      String location = content.getOwner().getFullName() + \"/\" + content.getPath();\r\n      if (excludedCatalogs.contains(location)) {\r\n        System.out.println(\"Excluded - \" + location);\r\n      } else {\r\n        System.out.println(\"Processing - \" + location);\r\n        var catalogContent = toJsonElement(gson, content);\r\n        if (catalogContent != null) {\r\n          catalogContent.aliases.entrySet().stream().map(entry -> toCatalogerItem(entry, content))\r\n              .forEach(aliasItems::add);\r\n\r\n          catalogContent.templates.entrySet().stream().map(entry -> templateToItem(entry, content))\r\n              .forEach(templateItems::add);\r\n        }\r\n      }\r\n    }\r\n}\r\n}\r\n```\r\n\r\n\r\ngets refactored into this:\r\n\r\n```java\r\nvoid somemethod() {\r\nvar gson = new GsonBuilder().setPrettyPrinting().create();\r\n    List\u003cCatalogItem> aliasItems = new ArrayList\u003c>();\r\n    List\u003cCatalogItem> templateItems = new ArrayList\u003c>();\r\n    PagedSearchIterable\u003cGHContent> ghContents = gitHub.searchContent().filename(\"jbang-catalog.json\").extension(\".json\")\r\n        .list().withPageSize(500);\r\n    addContent(gson, ghContents);\r\n\r\n}\r\n\r\nprivate void addContent(var gson, PagedSearchIterable\u003cGHContent> ghContents) throws IOException {\r\n    for (GHContent content : ghContents) {\r\n      String location = content.getOwner().getFullName() + \"/\" + content.getPath();\r\n      if (excludedCatalogs.contains(location)) {\r\n        System.out.println(\"Excluded - \" + location);\r\n      } else {\r\n        System.out.println(\"Processing - \" + location);\r\n        var catalogContent = toJsonElement(gson, content);\r\n        if (catalogContent != null) {\r\n          catalogContent.aliases.entrySet().stream().map(entry -> toCatalogerItem(entry, content))\r\n              .forEach(aliasItems::add);\r\n\r\n          catalogContent.templates.entrySet().stream().map(entry -> templateToItem(entry, content))\r\n              .forEach(templateItems::add);\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n```\r\n\r\nnotice how `gson` is of type `var` where it should be `gson` and neither `aliasItems` nor `templateItems` are present in the method declaration despite them being referenced.","author":{"url":"https://github.com/maxandersen","@type":"Person","name":"maxandersen"},"datePublished":"2021-05-25T06:48:52Z","url":"https://github.com/redhat-developer/vscode-java/issues/1956"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:eb4881c9-cf8c-048a-2676-e9a5b463fabf
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC620:11EBE2:5BEFA:7F818:6B0755A5
html-safe-nonce2cb0f0674b8360802aaadc0f5f6bea4504c515b9387d092c70d61ebd4bf669fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjIwOjExRUJFMjo1QkVGQTo3RjgxODo2QjA3NTVBNSIsInZpc2l0b3JfaWQiOiI1MTk5OTk5OTYzMTQwNDEyODM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb4bc81bab3695205fb987751eda6d9053e7597cf72af1acd6b2772d5cbdaa963
hovercard-subject-tagissue:900353072
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/redhat-developer/vscode-java/1956/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f99974415609c987844c6acf08847d7afb5dc7489dd8e9fa7d316be89f4d757a/redhat-developer/vscode-java/issues/1956
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f99974415609c987844c6acf08847d7afb5dc7489dd8e9fa7d316be89f4d757a/redhat-developer/vscode-java/issues/1956
og:image:altvoid somemethod() { var gson = new GsonBuilder().setPrettyPrinting().create(); List aliasItems = new ArrayList<>(); List templateItems = new ArrayList<>(); PagedSearchIter...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxandersen
hostnamegithub.com
expected-hostnamegithub.com
None663b1a69a41309856ffd9403fa5b764f6c0f78a39a0a8f75fb2c205c96a947be
turbo-cache-controlno-preview
go-importgithub.com/redhat-developer/vscode-java git https://github.com/redhat-developer/vscode-java.git
octolytics-dimension-user_id11033755
octolytics-dimension-user_loginredhat-developer
octolytics-dimension-repository_id65561709
octolytics-dimension-repository_nworedhat-developer/vscode-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id65561709
octolytics-dimension-repository_network_root_nworedhat-developer/vscode-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
releaseeffa2c0a160a75bd95d9ffcc6320197d7aea0d83
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/redhat-developer/vscode-java/issues/1956#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fredhat-developer%2Fvscode-java%2Fissues%2F1956
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%2Fredhat-developer%2Fvscode-java%2Fissues%2F1956
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=redhat-developer%2Fvscode-java
Reloadhttps://github.com/redhat-developer/vscode-java/issues/1956
Reloadhttps://github.com/redhat-developer/vscode-java/issues/1956
Reloadhttps://github.com/redhat-developer/vscode-java/issues/1956
redhat-developerhttps://github.com/redhat-developer
vscode-javahttps://github.com/redhat-developer/vscode-java
Codehttps://github.com/redhat-developer/vscode-java
Issues839 (839)https://github.com/redhat-developer/vscode-java/issues
Pull requests8 (8)https://github.com/redhat-developer/vscode-java/pulls
Discussionshttps://github.com/redhat-developer/vscode-java/discussions
Actionshttps://github.com/redhat-developer/vscode-java/actions
Projectshttps://github.com/redhat-developer/vscode-java/projects
Wikihttps://github.com/redhat-developer/vscode-java/wiki
Security and qualityhttps://github.com/redhat-developer/vscode-java/security
Insightshttps://github.com/redhat-developer/vscode-java/insights
https://github.com/redhat-developer/vscode-java
New issuehttps://github.com/login?return_to=https://github.com/redhat-developer/vscode-java/issues/1956
New issuehttps://github.com/login?return_to=https://github.com/redhat-developer/vscode-java/issues/1956
eclipse-jdtls/eclipse.jdt.ls#1780https://github.com/eclipse-jdtls/eclipse.jdt.ls/pull/1780
extract method does not seem to like var nor method referenceshttps://github.com/redhat-developer/vscode-java/issues/1956#top
eclipse-jdtls/eclipse.jdt.ls#1780https://github.com/eclipse-jdtls/eclipse.jdt.ls/pull/1780
https://github.com/snjeza
bughttps://github.com/redhat-developer/vscode-java/issues?q=state%3Aopen%20label%3A%22bug%22
refactoringhttps://github.com/redhat-developer/vscode-java/issues?q=state%3Aopen%20label%3A%22refactoring%22
End June 2021https://github.com/redhat-developer/vscode-java/milestone/93
https://github.com/maxandersen
maxandersenhttps://github.com/maxandersen
on May 25, 2021https://github.com/redhat-developer/vscode-java/issues/1956#issue-900353072
https://github.com/fbricon
fbriconhttps://github.com/fbricon
on May 25, 2021https://github.com/redhat-developer/vscode-java/issues/1956#issuecomment-847612880
https://github.com/maxandersen
maxandersenhttps://github.com/maxandersen
on May 25, 2021https://github.com/redhat-developer/vscode-java/issues/1956#issuecomment-847614484
https://github.com/fbricon
fbriconhttps://github.com/fbricon
on May 25, 2021https://github.com/redhat-developer/vscode-java/issues/1956#issuecomment-847616491
fbriconhttps://github.com/fbricon
bughttps://github.com/redhat-developer/vscode-java/issues?q=state%3Aopen%20label%3A%22bug%22
refactoringhttps://github.com/redhat-developer/vscode-java/issues?q=state%3Aopen%20label%3A%22refactoring%22
on May 25, 2021https://github.com/redhat-developer/vscode-java/issues/1956#event-4790648614
fbriconhttps://github.com/fbricon
snjezahttps://github.com/snjeza
on May 25, 2021https://github.com/redhat-developer/vscode-java/issues/1956#event-4790649693
https://github.com/snjeza
snjezahttps://github.com/snjeza
on May 25, 2021https://github.com/redhat-developer/vscode-java/issues/1956#issuecomment-848338404
#1780https://github.com/redhat-developer/vscode-java/pull/1780
https://github.com/maxandersen
maxandersenhttps://github.com/maxandersen
on May 27, 2021https://github.com/redhat-developer/vscode-java/issues/1956#issuecomment-849575020
https://github.com/rgrunber
rgrunberhttps://github.com/rgrunber
on May 27, 2021https://github.com/redhat-developer/vscode-java/issues/1956#issuecomment-849807523
https://bugs.eclipse.org/bugs/show_bug.cgi?id=535638https://bugs.eclipse.org/bugs/show_bug.cgi?id=535638
rgrunberhttps://github.com/rgrunber
completedhttps://github.com/redhat-developer/vscode-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
eclipse-jdtls/eclipse.jdt.ls#1780https://github.com/eclipse-jdtls/eclipse.jdt.ls/pull/1780
on May 27, 2021https://github.com/redhat-developer/vscode-java/issues/1956#event-4808733479
rgrunberhttps://github.com/rgrunber
Early June 2021https://github.com/redhat-developer/vscode-java/milestone/93
on May 27, 2021https://github.com/redhat-developer/vscode-java/issues/1956#event-4808735226
Sign up for freehttps://github.com/signup?return_to=https://github.com/redhat-developer/vscode-java/issues/1956
Sign in to commenthttps://github.com/login?return_to=https://github.com/redhat-developer/vscode-java/issues/1956
snjezahttps://github.com/snjeza
bughttps://github.com/redhat-developer/vscode-java/issues?q=state%3Aopen%20label%3A%22bug%22
refactoringhttps://github.com/redhat-developer/vscode-java/issues?q=state%3Aopen%20label%3A%22refactoring%22
End June 2021https://github.com/redhat-developer/vscode-java/milestone/93
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.