Merge changes I9865d0cd,Ic71d525f,Ib8faba91,Ia10e5ec9,I35591747,If456a131,I9f8709cc
authorTony Tkacik <ttkacik@cisco.com>
Sat, 8 Nov 2014 16:08:44 +0000 (16:08 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 8 Nov 2014 16:08:44 +0000 (16:08 +0000)
* changes:
  Fix non-generic references to List
  Hide XSQLBluePrintRelation.addToResult()
  Fix non-generic references to Set
  Fix HashMap references
  Fix raw references to java.lang.Class
  Fix raw references to NotificationListener
  Fix non-generic references to HashSet

1  2 
opendaylight/netconf/netconf-impl/src/test/java/org/opendaylight/controller/netconf/impl/NetconfMonitoringServiceImplTest.java

index a188550d40be72ab9b16e363d81627378c8f7bb9,794fde445d084e706be7f4e23048cd56fa8f709f..21250357994644a7bafa0940acc880a802c43a0f
@@@ -12,6 -12,7 +12,6 @@@ import com.google.common.base.Optional
  import com.google.common.collect.Lists;
  import com.google.common.collect.Sets;
  import io.netty.channel.Channel;
 -import java.util.List;
  import java.util.Set;
  import org.junit.Before;
  import org.junit.Test;
@@@ -55,6 -56,7 +55,6 @@@ public class NetconfMonitoringServiceIm
      public void testSessions() throws Exception {
          doReturn("sessToStr").when(managementSession).toString();
          service.onSessionUp(managementSession);
 -        List list = Lists.newArrayList(managementSession);
      }
  
      @Test(expected = RuntimeException.class)
      public void testGetSchemas3() throws Exception {
          doReturn("").when(managementSession).toString();
          Capability cap = mock(Capability.class);
-         Set caps = Sets.newHashSet(cap);
-         Set services = Sets.newHashSet(operationService);
+         Set<Capability> caps = Sets.newHashSet(cap);
+         Set<NetconfOperationService> services = Sets.newHashSet(operationService);
          doReturn(snapshot).when(operationProvider).openSnapshot(anyString());
          doReturn(services).when(snapshot).getServices();
          doReturn(caps).when(operationService).getCapabilities();
 -        Optional opt = mock(Optional.class);
 +        Optional<String> opt = mock(Optional.class);
          doReturn(opt).when(cap).getCapabilitySchema();
          doReturn(true).when(opt).isPresent();
          doReturn(opt).when(cap).getModuleNamespace();
          doReturn("namespace").when(opt).get();
 -        Optional optRev = Optional.of("rev");
 +        Optional<String> optRev = Optional.of("rev");
          doReturn(optRev).when(cap).getRevision();
          doReturn(Optional.of("modName")).when(cap).getModuleName();
          doReturn(Optional.of(Lists.newArrayList("loc"))).when(cap).getLocation();