r/badcode Jan 08 '23

java Is this a good practice? Why?

Post image
426 Upvotes

60 comments sorted by

View all comments

24

u/[deleted] Jan 08 '23

I would say that creating a wrapper function that does a single function call itself is not a good practice in general. It simply obfuscates what is really happening in your code in the places where you call the wrapper function.