• 请不要在回答技术问题时复制粘贴 AI 生成的内容
zjsxwc
V2EX  ›  程序员

不要链式写法,怎么让 IDEA 生成 setters 函数时不 return?

  •  
  •   zjsxwc ·
    zjsxwc · Oct 6, 2018 · 1839 views
    This topic created in 2958 days ago, the information mentioned may be changed or developed.

    目前在用的框架不提倡链式写法,为了统一代码风格我也不用链式写法,但是 IDEA 生成代码时还是会把 return this 给生成了,应该如何关掉?

    已经解决,生成时有个 fluent 选项

    mightofcode
    mightofcode
    Oct 7, 2018
    1
    你自己不写链式不就行了么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2328 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:20 · PVG 20:20 · LAX 04:20 · JFK 07:20
    ♥ Do have faith in what you're doing.