« Return to Thread: [vfs] Why doesn't AbstractFileObject override equals?

Re: [vfs] Why doesn't AbstractFileObject override equals?

by Mario Ivankovits :: Rate this Message:

Reply to Author | View in Thread

Hi!
> on the first glimpse i don't understand why AbstractFileObject doesn't
> override equals() and hashCode().
The current VFS implementation (if you do not use anything else then the
only-working SoftRefFilesCache) ensures that two resolveFile will return
the same object if you ask for the same filename, thus, in terms of VFS
there is nothing bad with the object comparison.
Did you catch any problem?

Ciao,
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: [vfs] Why doesn't AbstractFileObject override equals?

LightInTheBox - Buy quality products at wholesale price!