Commit c51b9485 authored by R.W.Majeed's avatar R.W.Majeed

no need for generic type in registerExtension

parent acc69e9f
......@@ -13,7 +13,7 @@ public interface ObservationFactory {
* Register an extension. Registered extensions cannot be removed.
* @param extension
*/
<T> void registerExtension(Extension<T> extension);
void registerExtension(Extension<?> extension);
/**
* Get a list of currently registered extensions
......
......@@ -30,7 +30,7 @@ public class ObservationFactoryImpl implements ObservationFactory{
}
@Override
public <T> void registerExtension(Extension<T> extension) {
public void registerExtension(Extension<?> extension) {
// make sure hashtable is not modified between index calculation and assignment
synchronized( extensions ){
for( Class<?> type : extension.getInstanceTypes() ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment