Re: String equality checks in JAXB classes

2016-09-16 Thread Romain Manni-Bucau
Le 16 sept. 2016 09:27, "Svetlin Zarev" a écrit : > > Hi, > > The static code analysis revealed that in all JAXB classes strings are > being compared using == and !=. Obviously TomEE works, so this is not such > a big issue, but I cannot explain to myself why it works :) I know that the > string l

String equality checks in JAXB classes

2016-09-16 Thread Svetlin Zarev
Hi, The static code analysis revealed that in all JAXB classes strings are being compared using == and !=. Obviously TomEE works, so this is not such a big issue, but I cannot explain to myself why it works :) I know that the string literals are interned by default, but how do you guarantee that t