Skip to content

Commit e7360a8

Browse files
committed
Picking up a couple of review comments
1 parent 0387a20 commit e7360a8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,7 @@ public void testXPackPutWatch() throws Exception {
26022602
assertThat(bos.toString("UTF-8"), is(body));
26032603
}
26042604

2605-
public void testXPackGraphExplore() throws Exception {
2605+
public void testGraphExplore() throws Exception {
26062606
Map<String, String> expectedParams = new HashMap<>();
26072607

26082608
GraphExploreRequest graphExploreRequest = new GraphExploreRequest();

x-pack/protocol/src/main/java/org/elasticsearch/protocol/xpack/graph/Connection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public Connection(Vertex from, Vertex to, double weight, long docCount) {
5555
this.docCount = docCount;
5656
}
5757

58-
void readFrom(StreamInput in, Map<VertexId, Vertex> vertices) throws IOException {
58+
public Connection(StreamInput in, Map<VertexId, Vertex> vertices) throws IOException {
5959
from = vertices.get(new VertexId(in.readString(), in.readString()));
6060
to = vertices.get(new VertexId(in.readString(), in.readString()));
6161
weight = in.readDouble();

x-pack/protocol/src/main/java/org/elasticsearch/protocol/xpack/graph/GraphExploreResponse.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ public void readFrom(StreamInput in) throws IOException {
121121

122122
connections = new HashMap<>();
123123
for (int i = 0; i < size; i++) {
124-
Connection e = new Connection();
125-
e.readFrom(in, vertices);
124+
Connection e = new Connection(in, vertices);
126125
connections.put(e.getId(), e);
127126
}
128127

0 commit comments

Comments
 (0)