diff options
Diffstat (limited to 'src/io/TweetReader.java')
-rw-r--r-- | src/io/TweetReader.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/io/TweetReader.java b/src/io/TweetReader.java index f67daf8..8968b84 100644 --- a/src/io/TweetReader.java +++ b/src/io/TweetReader.java @@ -2,9 +2,7 @@ package io; import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import com.google.gson.JsonParseException; import com.google.gson.JsonSyntaxException; -import data.DebuggingJsonDeserializer; import data.Tweet; import data.ValidatingJsonDeserializer; import java.io.BufferedReader; @@ -58,12 +56,7 @@ public class TweetReader implements ITweetReader { } private void debugTweet(String line, JsonSyntaxException ex) { - try { - System.err.println("Faulty line: " + line); - DebuggingJsonDeserializer.tryValidate(line, Tweet.class); - System.err.println("No error occured, how strange?"); - } catch (JsonParseException jse) { - System.err.println("The error was: " + jse); - } + System.err.println("Faulty line: " + line); + ex.printStackTrace(); } } |