Fix issues with call graph serialization

This commit is contained in:
Alexey Andreev 2019-03-13 19:19:05 +03:00
parent 731beb5cd5
commit 36041b4107
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public class DefaultCallSite implements CallSite, Serializable {
@Override @Override
public Collection<? extends DefaultCallGraphNode> getCalledMethods() { public Collection<? extends DefaultCallGraphNode> getCalledMethods() {
if (singleCalledMethod == null) { if (singleCalledMethod != null) {
return Collections.singletonList(singleCalledMethod); return Collections.singletonList(singleCalledMethod);
} }
if (readonlyCalledMethods == null) { if (readonlyCalledMethods == null) {

View File

@ -49,7 +49,7 @@ class SerializableCallGraph implements Serializable {
FieldReference field; FieldReference field;
} }
static class Location { static class Location implements Serializable {
TextLocation value; TextLocation value;
int caller; int caller;
} }