You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently ok().withBody("").withHeader("Content-Type", "application/json") call chains are suggested to be simplified as okForContentType("application/json", "") but could be simplified directly as okJson("")
Tasks
Add a new quick fix for the mentioned case.
The text was updated successfully, but these errors were encountered:
picimako
changed the title
Convert ok().withBody().withHeader(, "application/json") to okJson() directly
Convert ok().withBody().withHeader() to okJson()/okXml()/okTextXml() directly
Nov 4, 2024
Summary
Currently
ok().withBody("").withHeader("Content-Type", "application/json")
call chains are suggested to be simplified asokForContentType("application/json", "")
but could be simplified directly asokJson("")
Tasks
The text was updated successfully, but these errors were encountered: