sreich
06/24/2022, 1:45 PMChris Lee
06/24/2022, 1:46 PMJoffrey
06/24/2022, 1:46 PMexpensiveOperation
? Or any method call? You could write a wrapper for logger.log
that provides a scope to call the operation only in the lambda form, but that would be a bit convolutedsreich
06/24/2022, 1:48 PMJoffrey
06/24/2022, 1:48 PMsreich
06/24/2022, 1:48 PMJoffrey
06/24/2022, 1:49 PMlogger.log(String)
- but that would only work on this IDE. Otherwise yeah a rule on whatever linter you're using would be bestsreich
06/24/2022, 2:08 PMsreich
06/24/2022, 2:08 PMsreich
06/24/2022, 2:34 PMJoffrey
06/24/2022, 2:37 PM.idea
and other devs use IDEA toosreich
06/24/2022, 2:40 PM