commit 915e871a397d4c965e7425f27c0a8c6bacd06507 Author: Karsten Loesing karsten.loesing@gmx.net Date: Thu Apr 24 10:36:27 2014 +0200
Fix parsing of JSON files.
When parsing JSON documents into objects, we shouldn't store the parsed JSON string. Two reasons: first, there's no need to store everything twice; second, we won't know later whether we should write that string to disk or generate a new one. --- src/org/torproject/onionoo/DocumentStore.java | 1 - 1 file changed, 1 deletion(-)
diff --git a/src/org/torproject/onionoo/DocumentStore.java b/src/org/torproject/onionoo/DocumentStore.java index 0bc2970..e98fb4e 100644 --- a/src/org/torproject/onionoo/DocumentStore.java +++ b/src/org/torproject/onionoo/DocumentStore.java @@ -413,7 +413,6 @@ public class DocumentStore { Gson gson = new Gson(); try { result = gson.fromJson(documentString, documentType); - result.setDocumentString(documentString); } catch (JsonParseException e) { /* Handle below. */ e.printStackTrace();
tor-commits@lists.torproject.org