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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/windup-dev