mirror of
https://github.com/SonarSource/sonarqube.git
synced 2024-09-07 21:31:52 +02:00
SONAR-4087 Replace Tinkerpop GraphSONReader by Sonar GraphSONReader when reading a graph
This commit is contained in:
parent
6366574991
commit
6c261f63b1
@ -21,8 +21,8 @@ package org.sonar.core.component;
|
||||
|
||||
import com.tinkerpop.blueprints.Vertex;
|
||||
import com.tinkerpop.blueprints.impls.tg.TinkerGraph;
|
||||
import com.tinkerpop.blueprints.util.io.graphson.GraphSONReader;
|
||||
import org.sonar.core.component.ComponentGraph;
|
||||
import org.json.simple.parser.ParseException;
|
||||
import org.sonar.core.graph.GraphSONReader;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
@ -37,7 +37,9 @@ public class GraphReader {
|
||||
Vertex root = graph.getVertex(rootVertexId);
|
||||
return new ComponentGraph(graph, root);
|
||||
} catch (IOException e) {
|
||||
throw new IllegalStateException();
|
||||
throw new IllegalStateException(e);
|
||||
} catch (ParseException e) {
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user