Skip to content

Commit

Permalink
removed obsolete lines in SearchResult
Browse files Browse the repository at this point in the history
  • Loading branch information
Cihat Keser committed Feb 28, 2015
1 parent 3296bcf commit 8b6d896
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions jest-common/src/main/java/io/searchbox/core/SearchResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ public <T extends Facet> List<T> getFacets(Class<T> type) {
for (Map.Entry<String, JsonElement> facetEntry : facetsMap.entrySet()) {
JsonObject facet = facetEntry.getValue().getAsJsonObject();
if (facet.get("_type").getAsString().equalsIgnoreCase(type.getField("TYPE").get(null).toString())) {
// c = (Constructor<T>)
// Class.forName(type.getName()).getConstructor(String.class,JsonObject.class);

c = type.getConstructor(String.class, JsonObject.class);
facets.add((T) c.newInstance(facetEntry.getKey(), facetEntry.getValue()));
}
Expand Down

0 comments on commit 8b6d896

Please sign in to comment.