Sanne/hibernate-core — comment on commit fcac23d507c864788cb2ed97fd7fedecb46d723e
File: hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java line 265
By jpav:

I'm not sure why you'd need the guard here. The idea behind methods like tracev and tracef is to eliminate the need for such guards, as these methods should perform the same check internally before formatting the message. The only clear thing the guard would save you here is the evaluation of idGen.getName(), which should be extremely quick anyway. Same comment would apply for similar code below.