I just refer to this article about class-comparison:

https://www.securecoding.cert.org/confluence/display/java/OBJ06-J.+Compare+classes+and+not+class+names

But if you say it's ok, I trust you ;)

On 18.08.2010 17:07, Thiago H. de Paula Figueiredo wrote:
On Wed, 18 Aug 2010 11:33:05 -0300, Alexander Muthmann <amuthm...@dev-eth0.de> wrote:

Is there any better possibility to compare those classes than to just compare their names which is a little bit annoying because there could be two classes with the same name but which aren't equal...

If you have two different classes with the same fully qualified name, you have a big problem waiting to happen.


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to