Re: No Label.equals() method
Prashant Deva <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <CAEg0NFZkW0RKRho8HTSh5zqgPJ=s6-ZOyuarOKRESz5kK1JmKg@mail.gmail.com> |
Yes, but if you need to store the labels as in my case, the identity wont be preserved since new Label objects will be created when the 2nd transformer is running. Thats why I need to know how to do the equals without the identity. Prashant On Sun, Jul 10, 2011 at 2:05 PM, Eugene Kuleshov <[email protected]>wrote: > The Label class relies on default implementation of equals() and hashcode() > methods. Comparison of two labels should be done by identity. > > regards, > Eugene > On 2011-07-10 4:54 PM, "Prashant Deva" <[email protected]> wrote: > > I noticed that the Label class does not have a equals() method. > > I need to store the Label info for a local var across multiple > transformers. > > > > This means I need a equals() method for the Label class. > > > > Can somebody tell what kind of checks should a Label.equals() method > > contain? > > > > Prashant >
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws