X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fcodegen%2FRuntimeCodeHelper.xtend;h=2e73977804c79f649d502535cc9decae1b30fbd3;hb=a251833f27fd00040904e2df316cd707c8129d1e;hp=6bdb3c8fbed555b188c17fd9789fb4d7af9a93c7;hpb=3e5a15bd17299cc88ea253514db40661e11f5bb7;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/RuntimeCodeHelper.xtend b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/RuntimeCodeHelper.xtend index 6bdb3c8fbe..2e73977804 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/RuntimeCodeHelper.xtend +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/sal/binding/codegen/RuntimeCodeHelper.xtend @@ -45,16 +45,16 @@ class RuntimeCodeHelper { throw new IllegalArgumentException("delegate class is not assignable to proxy"); } - public static def Map getRoutingTable(RpcService target, + public static def Map, ? extends RpcService> getRoutingTable(RpcService target, Class tableClass) { val field = target.class.getField(tableClass.routingTableField) if (field == null) throw new UnsupportedOperationException( "Unable to get routing table. Table field does not exists"); - return field.get(target) as Map; + return field.get(target) as Map, ? extends RpcService>; } public static def void setRoutingTable(RpcService target, Class tableClass, - Map routingTable) { + Map, ? extends RpcService> routingTable) { val field = target.class.getField(tableClass.routingTableField) if (field == null) throw new UnsupportedOperationException( "Unable to set routing table. Table field does not exists");