Cleanup comments, formatting, etc

By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
CraftBukkit/Spigot
2013-03-24 23:22:32 -05:00
parent f0a4f87f80
commit 56947c94a9
40 changed files with 110 additions and 138 deletions

View File

@@ -77,9 +77,8 @@ public class BukkitDLUpdaterService {
connection.setRequestProperty("User-Agent", getUserAgent());
reader = new InputStreamReader(connection.getInputStream());
Gson gson = new GsonBuilder().registerTypeAdapter(Date.class, dateDeserializer).setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();
ArtifactDetails.ChannelDetails fromJson = gson.fromJson(reader, ArtifactDetails.ChannelDetails.class);
return fromJson;
return gson.fromJson(reader, ArtifactDetails.ChannelDetails.class);
} finally {
if (reader != null) {
reader.close();