IDEA: don't serialize call graph when dev server completes build

This commit is contained in:
Alexey Andreev 2019-02-27 13:24:12 +03:00
parent ca017df6c9
commit e8312021f2
2 changed files with 0 additions and 3 deletions

View File

@ -18,10 +18,8 @@ package org.teavm.idea.devserver;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.teavm.callgraph.CallGraph;
import org.teavm.diagnostics.Problem; import org.teavm.diagnostics.Problem;
public class DevServerBuildResult implements Serializable { public class DevServerBuildResult implements Serializable {
public CallGraph callGraph;
public final List<Problem> problems = new ArrayList<>(); public final List<Problem> problems = new ArrayList<>();
} }

View File

@ -327,7 +327,6 @@ public class DevServerRunner extends UnicastRemoteObject implements DevServerMan
@Override @Override
public void compilationComplete(BuildResult buildResult) { public void compilationComplete(BuildResult buildResult) {
DevServerBuildResult result = new DevServerBuildResult(); DevServerBuildResult result = new DevServerBuildResult();
result.callGraph = buildResult.getCallGraph();
result.problems.addAll(buildResult.getProblems().getProblems()); result.problems.addAll(buildResult.getProblems().getProblems());
for (DevServerManagerListener listener : getListeners()) { for (DevServerManagerListener listener : getListeners()) {
try { try {