Title: 泛型替换和 lambda 参数的类型推断 · Issue #5 · Lithe-IDEA/lithe-plugin-java-navigation · GitHub
Open Graph Title: 泛型替换和 lambda 参数的类型推断 · Issue #5 · Lithe-IDEA/lithe-plugin-java-navigation
X Title: 泛型替换和 lambda 参数的类型推断 · Issue #5 · Lithe-IDEA/lithe-plugin-java-navigation
Description: #3 之后,和 JDT LS 在 Nacos 上 3×1500 个位置的对比里,剩下的差异几乎都要靠泛型推断: 泛型返回值:list.get(i).split(...)、map.get(a).get(b) lambda 参数:v -> v.getVersion()、items.forEach(item -> item.getName())、比较器里的 o1.getPriority()、ruoyi-vue-pro 的 MapUtils.findAndThen(map, k...
Open Graph Description: #3 之后,和 JDT LS 在 Nacos 上 3×1500 个位置的对比里,剩下的差异几乎都要靠泛型推断: 泛型返回值:list.get(i).split(...)、map.get(a).get(b) lambda 参数:v -> v.getVersion()、items.forEach(item -> item.getName())、比较器里的 o1.getPriority()、ruo...
X Description: #3 之后,和 JDT LS 在 Nacos 上 3×1500 个位置的对比里,剩下的差异几乎都要靠泛型推断: 泛型返回值:list.get(i).split(...)、map.get(a).get(b) lambda 参数:v -> v.getVersion()、items.forEach(item -> item.getName())、比较器里的 o1.getPriority...
Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/issues/5
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"泛型替换和 lambda 参数的类型推断","articleBody":"#3 之后,和 JDT LS 在 Nacos 上 3×1500 个位置的对比里,剩下的差异几乎都要靠泛型推断:\n\n- 泛型返回值:`list.get(i).split(...)`、`map.get(a).get(b)`\n- lambda 参数:`v -> v.getVersion()`、`items.forEach(item -> item.getName())`、比较器里的 `o1.getPriority()`、ruoyi-vue-pro 的 `MapUtils.findAndThen(map, key, v -> ...)`\n- 要按泛型实参区分的重载:`JsonUtils.toObj(restResult.getData(), new NacosTypeReference\u003c...>() {})`\n- 数组维度:`buffer.write(key.getBytes(UTF_8))` 选成了 `write(int)`(类型去掉了 `[]`)\n\n需要索引保留成员类型里的泛型实参和类型参数,`typeOfExpr` 返回带实参的类型,并按函数式接口的参数类型推出 lambda 参数。验收:用 `cmd/nav-bench` 对比改动前后的命中率、延迟和内存,内存增量要写清楚。","author":{"url":"https://github.com/1lck","@type":"Person","name":"1lck"},"datePublished":"2026-11-13T03:46:31Z","url":"https://github.com/Lithe-IDEA/lithe-plugin-java-navigation/issues/5"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:492621c9-0681-9843-6564-df33afcbb5f9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9F6:1577AD:26410A8:358D305:6B070EB1 |
| html-safe-nonce | a14d0e15fe8c08a303956aa471c321f0c2dd1aea17343326659efc987342770f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUY2OjE1NzdBRDoyNjQxMEE4OjM1OEQzMDU6NkIwNzBFQjEiLCJ2aXNpdG9yX2lkIjoiMzg3ODkxMjQzNzE0NzYwMjYwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 10d6b013d519254f4b0a231925a51908b2eea5bab00fd864f738cd061e2e2cf5 |
| hovercard-subject-tag | issue:6364256808 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Lithe-IDEA/lithe-plugin-java-navigation/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f88e10eef4222e57d52064f1b692884b3f048b8b905aeb4717ec6b988406b17/Lithe-IDEA/lithe-plugin-java-navigation/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f88e10eef4222e57d52064f1b692884b3f048b8b905aeb4717ec6b988406b17/Lithe-IDEA/lithe-plugin-java-navigation/issues/5 |
| og:image:alt | #3 之后,和 JDT LS 在 Nacos 上 3×1500 个位置的对比里,剩下的差异几乎都要靠泛型推断: 泛型返回值:list.get(i).split(...)、map.get(a).get(b) lambda 参数:v -> v.getVersion()、items.forEach(item -> item.getName())、比较器里的 o1.getPriority()、ruo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 1lck |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9aaa1abe1aaef39a8543ab08df7a776c3243275815d741d29afa7b02148ca05e |
| turbo-cache-control | no-preview |
| go-import | github.com/Lithe-IDEA/lithe-plugin-java-navigation git https://github.com/Lithe-IDEA/lithe-plugin-java-navigation.git |
| octolytics-dimension-user_id | 340144206 |
| octolytics-dimension-user_login | Lithe-IDEA |
| octolytics-dimension-repository_id | 1455228792 |
| octolytics-dimension-repository_nwo | Lithe-IDEA/lithe-plugin-java-navigation |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1455228792 |
| octolytics-dimension-repository_network_root_nwo | Lithe-IDEA/lithe-plugin-java-navigation |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c43783771de038e2c401dd343799000e8d1253 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width