You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by nn...@apache.org on 2018/11/29 22:28:26 UTC

[geode] branch develop updated: GEODE-6098: LGTM fix for subtle call to inherited method. (#2910)

This is an automated email from the ASF dual-hosted git repository.

nnag pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new c62b7c6  GEODE-6098: LGTM fix for subtle call to inherited method. (#2910)
c62b7c6 is described below

commit c62b7c64142cff2b2e1bc68a53c4100db1779688
Author: Nabarun Nag <na...@users.noreply.github.com>
AuthorDate: Thu Nov 29 14:28:17 2018 -0800

    GEODE-6098: LGTM fix for subtle call to inherited method. (#2910)
    
    * Changed to this instead of toString() like in the rest of the class.
---
 .../apache/geode/distributed/internal/locks/DistributedMemberLock.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DistributedMemberLock.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DistributedMemberLock.java
index c25c497..9f2ad5e 100755
--- a/geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DistributedMemberLock.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DistributedMemberLock.java
@@ -148,7 +148,7 @@ public class DistributedMemberLock implements Lock {
           return true;
         }
         boolean locked = dls.lock(key, -1, leaseTimeout);
-        Assert.assertTrue(locked, "Failed to lock " + toString());
+        Assert.assertTrue(locked, "Failed to lock " + this);
         return locked;
       }
     });