[windup-dev] FileMapping.getId()
Jess Sightler
jsightle at redhat.com
Wed Mar 25 11:28:33 EDT 2015
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.
More information about the windup-dev
mailing list