classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Duplicate object prevention policy


From: Jan Röhrich
Subject: Duplicate object prevention policy
Date: Wed, 30 Nov 2005 02:58:58 +0100

Hello list,

imagine the following case: A method supports the lookup of objects
using a name -> object mapping. The objects are stored in a map but can
easily be newly created instead of performing a real lookup. Shall we
perform this real lookup even if the newly created object is equal to
the original object in terms of Object.equals().

Concrete?: Have a look at
java.awt.datatransfer.SystemFlavorMap#decodeDataFlavor(). This is only
one appearance of this problem (out of many many).

Jan

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]