this post was submitted on 29 Oct 2023
11 points (92.3% liked)
Java
1394 readers
13 users here now
For discussing Java, the JVM, languages that run on the JVM, and other related technologies.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It sounds like this would be simple to catch during code reviews, or in the very least with a regression test running after the packaging stage.
It sounds like the job for a performance test.
Aren't code reviews catching this?
I'm afraid that's not supposed to be handled at the code formatting level. That's supposed to be handled by extracting code to a method or a dedicated class, and cover with unit tests to illustrate how it's expected to work. If you're trying to handle that with non-standard code formatting then I'm afraid you're writing bad code.