-
Notifications
You must be signed in to change notification settings - Fork 38
Offer BundleContext#registerService without HashTable #43
Comments
Comment author: Lars Vogel <[email protected]> The synchronized data structure HashTable is not recommened to be used, by several tools, e.g. Sonar shows this as warning. Would be nice if we could register services without creating warnings in our code. Example:
|
Even the Java-doc of Dictionary says that Map should be used instead.
Some of them define API using Dictionary, some only consume it. But all of them should be considered when Dictionary is replaced some day. |
See the new
|
I can see your problems with the dictionary. But in most cases of using dictionaries it might be better to use newer patterns. The only way i really use an dictionary is in tests. But there I use the powerfully Dictionaries class. Maybe more of the functionally should be available in the framework package. Btw. New implementations should implement the Map interface, rather than extending this class. |
Original bug ID: BZ#239
From: Lars Vogel <[email protected]>
Reported version: R7
The text was updated successfully, but these errors were encountered: