[ https://issues.apache.org/jira/browse/VFS-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495758 ]
Adam Heath commented on VFS-156: -------------------------------- Well, how can the user detect whether a listener is already added? Such a method does not exist in FileSystem. Then, you have the problem of synchronization and locking. It's not a new dependency; see LRUFilesCache. It uses commons-collections already. If my patch had required a new dependency, I would have said so. > Use a set to hold the listeners in AbstractFileSystem > ----------------------------------------------------- > > Key: VFS-156 > URL: https://issues.apache.org/jira/browse/VFS-156 > Project: Commons VFS > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: Adam Heath > Priority: Minor > Attachments: feature_ListOrderedSet-listeners.patch > > > Use a set(from commons-collections) to hold the listeners, so that a listener > isn't added multiple times. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]