Commit 621937c6 authored by Yusuke Iwaki's avatar Yusuke Iwaki

rename variable

parent 03174051
...@@ -18,7 +18,7 @@ import org.json.JSONObject; ...@@ -18,7 +18,7 @@ import org.json.JSONObject;
*/ */
public class MethodCallObserver extends AbstractModelObserver<MethodCall> { public class MethodCallObserver extends AbstractModelObserver<MethodCall> {
private String prevHash; private String prevDigest;
/** /**
* constructor. * constructor.
...@@ -53,7 +53,7 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> { ...@@ -53,7 +53,7 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> {
.findAll(); .findAll();
} }
private String getHashFor(List<MethodCall> results) { private String getDigestFor(List<MethodCall> results) {
if (results == null) { if (results == null) {
return "-"; return "-";
} }
...@@ -68,17 +68,17 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> { ...@@ -68,17 +68,17 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> {
} }
@Override public void onUpdateResults(List<MethodCall> results) { @Override public void onUpdateResults(List<MethodCall> results) {
String hash = getHashFor(results); String digest = getDigestFor(results);
if (prevHash == null) { if (prevDigest == null) {
if (hash == null) { if (digest == null) {
return; return;
} }
} else { } else {
if (prevHash.equals(hash)) { if (prevDigest.equals(digest)) {
return; return;
} }
} }
prevHash = hash; prevDigest = digest;
if (results == null || results.isEmpty()) { if (results == null || results.isEmpty()) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment