Use Object.requireNonNull
[netconf.git] / netconf / netconf-impl / src / test / java / org / opendaylight / netconf / impl / osgi / NetconfOperationRouterImplTest.java
index a59c257635ea14447e6a2ba787de12c24cc44862..21c375830a7aaecae9a545e2ef05c6937fd8d550 100644 (file)
@@ -77,7 +77,7 @@ public class NetconfOperationRouterImplTest {
         doNothing().when(operationService).close();
 
         operationRouter = new NetconfOperationRouterImpl(operationService, null, "session-1");
-        doReturn(Collections.EMPTY_SET).when(operationService2).getNetconfOperations();
+        doReturn(Collections.emptySet()).when(operationService2).getNetconfOperations();
         emptyOperationRouter = new NetconfOperationRouterImpl(operationService2, null, "session-1");
     }