minus-squarepresumably_wrong@lemm.eetoJava@programming.devโขWhat are some things in the class library you wish more people knew about or used?linkfedilinkEnglisharrow-up0ยท3 years agoInstead of wrapping it in an optional you can do Objects.requireNonNullElse(value, defaultValue) linkfedilink
Instead of wrapping it in an optional you can do
Objects.requireNonNullElse(value, defaultValue)