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

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

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

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

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

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