Yep, that seems like a problem.
On Wed, Mar 25, 2015 at 11:28 AM, Jess Sightler <jsightle(a)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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/windup-dev
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."