Kotlin printer: idioms parked by the #140 review

未关闭
#231 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
java, kotlin

调研方向

The issue lists Kotlin printer idioms deferred from the #140 review, with several separate transformations and occurrence counts from a langchain4j output. Read the #140 review and the printer implementation to identify the relevant entry points; the issue does not name files or tests. Done means splitting the work into individual issues, as the body says, before choosing and implementing one transformation.

由索引模型根据 Issue 内容生成。

描述

enhancement

The #140 review parked these until after the KotlinConf proposal. Recorded here so they are not lost; each becomes its own issue when picked up.

  • Streams → collection operations (.stream() 61 times in the 2026-10-15 langchain4j output).
  • Optional → nullable types (101 occurrences).
  • equals/hashCode/toString → data class.
  • getX()/setX() → properties for Java-parsed code (63 accessor functions).
  • Default arguments for overload chains.
  • object singletons and top-level functions for utility classes.
  • when from if-chains, trailing lambdas and it.

(@Throws is #223; ?.let is #164.)

🤖 Generated with Claude Code

主要语言
Java
星标
1
派生
1
平均合并
48 分钟
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeLaser/maddi 的其他 Issue

查看 CodeLaser/maddi 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。