Migrate isFoo() callers 04/94504/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 8 Jan 2021 18:27:22 +0000 (19:27 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 8 Jan 2021 18:27:22 +0000 (19:27 +0100)
isFoo() is deprecated for removal, migrate callers to getFoo()
instead.

Change-Id: Ic7d70762ff55e5840654ef6fe17767909bddf91b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-cluster-admin-impl/src/main/java/org/opendaylight/controller/cluster/datastore/admin/ClusterAdminRpcService.java
opendaylight/md-sal/sal-cluster-admin-impl/src/test/java/org/opendaylight/controller/cluster/datastore/admin/ClusterAdminRpcServiceTest.java
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/WriteTransactionsHandler.java

index 9ba40c5..4e1481e 100644 (file)
@@ -700,7 +700,7 @@ public class ClusterAdminRpcService implements ClusterAdminService {
             final List<MemberVotingState> memberVotingStatus) {
         Map<String, Boolean> serverVotingStatusMap = new HashMap<>();
         for (MemberVotingState memberStatus: memberVotingStatus) {
-            serverVotingStatusMap.put(memberStatus.getMemberName(), memberStatus.isVoting());
+            serverVotingStatusMap.put(memberStatus.getMemberName(), memberStatus.getVoting());
         }
         return new ChangeShardMembersVotingStatus(shardName, serverVotingStatusMap);
     }
index 0ba06e3..9703ebc 100644 (file)
@@ -1202,8 +1202,8 @@ public class ClusterAdminRpcServiceTest {
             ShardResult exp = expResultsMap.remove(result.getShardName() + "-" + result.getDataStoreType());
             assertNotNull(String.format("Unexpected result for shard %s, type %s", result.getShardName(),
                     result.getDataStoreType()), exp);
-            assertEquals("isSucceeded", exp.isSucceeded(), result.isSucceeded());
-            if (exp.isSucceeded()) {
+            assertEquals("isSucceeded", exp.getSucceeded(), result.getSucceeded());
+            if (exp.getSucceeded()) {
                 assertNull("Expected null error message", result.getErrorMessage());
             } else {
                 assertNotNull("Expected error message", result.getErrorMessage());
index 23c9e52..00d7f73 100644 (file)
@@ -197,7 +197,7 @@ public abstract class WriteTransactionsHandler extends AbstractTransactionHandle
         }
 
         final WriteTransactionsHandler handler;
-        if (input.isChainedTransactions()) {
+        if (input.getChainedTransactions()) {
             handler = new Chained(domDataBroker, idListItem, input);
         } else {
             handler = new Simple(domDataBroker, idListItem, input);