Clean up test output
Change-Id: I705b5b8748435c64b4ecc056b83471ba2aeb1c71
diff --git a/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java b/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java
index cb46ef1..c98b443 100644
--- a/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java
+++ b/src/main/java/de/ids_mannheim/korap/query/serialize/QuerySerializer.java
@@ -100,7 +100,7 @@
* 'poliqarpplus', 'cosmas2', 'annis' or 'cql'.
* @throws IOException
*/
- public void run(String query, String queryLanguage) throws IOException {
+ public void run (String query, String queryLanguage) throws IOException {
if (queryLanguage.equalsIgnoreCase("poliqarp")) {
ast = new PoliqarpPlusQueryProcessor(query);
} else if (queryLanguage.equalsIgnoreCase("cosmas2")) {
@@ -117,7 +117,7 @@
throw new IllegalArgumentException(queryLanguage
+ " is not a supported query language!");
}
- toJSON();
+ System.out.println(this.toJSON());
}
public QuerySerializer setQuery(String query, String ql, String version) {
@@ -167,7 +167,7 @@
String ser;
try {
ser = mapper.writeValueAsString(raw());
- System.out.println(ser);
+ // System.out.println(ser);
} catch (JsonProcessingException e) {
return "";
}