ToStringBuilder adds X appendSuper

in my classes when writing the toString () method, I always use ToStringBuilder from org.apache.commons

And when I extend other classes, I use appendSuper()and then myappends

Question:

Are there any real differences in performance:

appendSuper(super.toString())

instead

append(super.toString())

Type of fictitious question.

Greetings

+5
source share
1 answer

Implementation A ToStringStylemay display it differently when appendSuper is called from append . No implementation of Apache commons lang 2.4 does.

+4
source

All Articles