[windup-dev] FileMapping.getId()
Lincoln Baxter, III
lincolnbaxter at gmail.com
Fri Mar 27 19:11:44 EDT 2015
Yep, that seems like a problem.
On Wed, Mar 25, 2015 at 11:28 AM, Jess Sightler <jsightle at redhat.com> wrote:
>
> On 03/24/2015 09:31 PM, Ondrej Zizka wrote:
> > @Override
> > public String getId()
> > {
> > return this.getClass().getName() + "_" +
> > UUID.randomUUID().toString();
> > }
> >
> > Isn't it a potential problem that this returns different values on each
> > call?
> > Shouldn't it store a value once called? Or derive the value from, say, a
> > class object? Or just use Class#hashCode()?
>
> I agree. It seems like a mistake that repeated calls to the same object
> here will return different values.
> _______________________________________________
> windup-dev mailing list
> windup-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/windup-dev
>
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/windup-dev/attachments/20150327/9a7a51b2/attachment.html
More information about the windup-dev
mailing list