mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fix issues with call graph serialization
This commit is contained in:
parent
731beb5cd5
commit
36041b4107
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user