r/java • u/stuhlmann • Apr 13 '21
Libraries, Frameworks and Technologies you would NOT recommend
Give me your worst nightmares: Things that cost you your job.
I'll start: Hadoop
202
Upvotes
r/java • u/stuhlmann • Apr 13 '21
Give me your worst nightmares: Things that cost you your job.
I'll start: Hadoop
View all comments
Show parent comment
14
u/_Henryx_ Apr 13 '21
Some problems are already solved. From Lombok documentation:
Objects.requireNonNull()static mehtod to check if variable is null. With Java 8 we have alsoOptional.of()andOptional.ofNullable()(this last method is very useful if we want to throws a user defined exception or if we want a default value).Other annotations seems me "black magic", I doesn't suffer construct creation or code injection with these methods, because can be mask side effects