LfsGson: Remove unnecessary 'throws' declarations
JsonIOException and JsonSyntaxException are subclasses of
RuntimeException, so don't need to be explicitly specified.
Change-Id: I3ed07df4838ea38c0d6e5ab88f4d18907532862a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/lfs/LfsGson.java b/src/main/java/com/googlesource/gerrit/plugins/lfs/LfsGson.java
index 66398fe..f2af66e 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/lfs/LfsGson.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/lfs/LfsGson.java
@@ -17,8 +17,6 @@
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
-import com.google.gson.JsonIOException;
-import com.google.gson.JsonSyntaxException;
import com.google.inject.Singleton;
import java.io.Reader;
@@ -34,7 +32,7 @@
.create();
}
- public void toJson(Object src, Appendable writer) throws JsonIOException {
+ public void toJson(Object src, Appendable writer) {
gson.toJson(src, writer);
}
@@ -42,8 +40,7 @@
return gson.toJson(src);
}
- public <T> T fromJson(Reader json, Class<T> classOfT)
- throws JsonSyntaxException, JsonIOException {
+ public <T> T fromJson(Reader json, Class<T> classOfT) {
return gson.fromJson(json, classOfT);
}
}