Skip to content

Commit 6b826f7

Browse files
committed
'reverted' some crap
1 parent 0ef83ee commit 6b826f7

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.arangodb.entity;
2+
3+
import java.util.List;
4+
5+
/**
6+
* @author gschwab
7+
*
8+
*/
9+
public class GraphGetCollectionsResultEntity extends BaseEntity {
10+
11+
List<String> collections;
12+
13+
public List<String> getCollections() {
14+
return collections;
15+
}
16+
17+
public void setCollections(List<String> collections) {
18+
this.collections = collections;
19+
}
20+
21+
}

src/main/java/com/arangodb/impl/InternalGraphDriverImpl.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
import com.arangodb.entity.EntityFactory;
3838
import com.arangodb.entity.FilterCondition;
3939
import com.arangodb.entity.GraphEntity;
40+
import com.arangodb.entity.GraphGetCollectionsResultEntity;
4041
import com.arangodb.entity.GraphsEntity;
41-
import com.arangodb.entity.StringsResultEntity;
4242
import com.arangodb.entity.marker.VertexEntity;
4343
import com.arangodb.http.HttpManager;
4444
import com.arangodb.http.HttpResponseEntity;
@@ -157,9 +157,9 @@ public List<String> getVertexCollections(String databaseName, String graphName)
157157
throw new ArangoException("unknown error");
158158
}
159159

160-
StringsResultEntity result = createEntity(res, StringsResultEntity.class, null, true);
160+
GraphGetCollectionsResultEntity result = createEntity(res, GraphGetCollectionsResultEntity.class, null, true);
161161

162-
return result.getResult();
162+
return result.getCollections();
163163
}
164164

165165
/**
@@ -233,9 +233,8 @@ public List<String> getEdgeCollections(String databaseName, String graphName) th
233233
throw new ArangoException("unknown error");
234234
}
235235

236-
StringsResultEntity result = createEntity(res, StringsResultEntity.class, null, true);
237-
238-
return result.getResult();
236+
GraphGetCollectionsResultEntity result = createEntity(res, GraphGetCollectionsResultEntity.class, null, true);
237+
return result.getCollections();
239238
}
240239

241240
@Override

0 commit comments

Comments
 (0)