diff --git a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCertifications.java b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCertifications.java index 8d324dc70..7a8d62597 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCertifications.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCertifications.java @@ -65,7 +65,7 @@ public class TmdbCertifications extends AbstractMethod { JsonNode node = MAPPER.readTree(webpage); Map> results = MAPPER.readValue(node.elements().next().traverse(), new TypeReference>>() { }); - return new ResultsMap>(results); + return new ResultsMap<>(results); } catch (IOException ex) { throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get movie certifications", url, ex); } @@ -85,7 +85,7 @@ public class TmdbCertifications extends AbstractMethod { JsonNode node = MAPPER.readTree(webpage); Map> results = MAPPER.readValue(node.elements().next().traverse(), new TypeReference>>() { }); - return new ResultsMap>(results); + return new ResultsMap<>(results); } catch (IOException ex) { throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get TV certifications", url, ex); } diff --git a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCollections.java b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCollections.java index 24c781c59..d36e478a1 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCollections.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCollections.java @@ -97,7 +97,7 @@ public class TmdbCollections extends AbstractMethod { try { WrapperImages wrapper = MAPPER.readValue(webpage, WrapperImages.class); - ResultList results = new ResultList(wrapper.getAll(ArtworkType.POSTER, ArtworkType.BACKDROP)); + ResultList results = new ResultList<>(wrapper.getAll(ArtworkType.POSTER, ArtworkType.BACKDROP)); wrapper.setResultProperties(results); return results; } catch (IOException ex) { diff --git a/src/main/java/com/omertron/themoviedbapi/methods/TmdbConfiguration.java b/src/main/java/com/omertron/themoviedbapi/methods/TmdbConfiguration.java index b23a8a870..04f65029d 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbConfiguration.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbConfiguration.java @@ -95,7 +95,7 @@ public class TmdbConfiguration extends AbstractMethod { try { WrapperJobList wrapper = MAPPER.readValue(webpage, WrapperJobList.class); - ResultList results = new ResultList(wrapper.getJobs()); + ResultList results = new ResultList<>(wrapper.getJobs()); wrapper.setResultProperties(results); return results; } catch (IOException ex) { @@ -121,7 +121,7 @@ public class TmdbConfiguration extends AbstractMethod { throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get timezone list", url, ex); } - ResultsMap> timezones = new ResultsMap>(); + ResultsMap> timezones = new ResultsMap<>(); for (Map> tzMap : tzList) { for (Map.Entry> x : tzMap.entrySet()) { diff --git a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCredits.java b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCredits.java index 55e5f8129..e0c6ac6c3 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCredits.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCredits.java @@ -28,7 +28,6 @@ import com.omertron.themoviedbapi.tools.Param; import com.omertron.themoviedbapi.tools.TmdbParameters; import java.io.IOException; import java.net.URL; -import org.slf4j.LoggerFactory; import org.yamj.api.common.exception.ApiExceptionType; /** @@ -78,7 +77,6 @@ public class TmdbCredits extends AbstractMethod { try { return MAPPER.readValue(webpage, CreditInfo.class); } catch (IOException ex) { - LoggerFactory.getLogger("test").info("{}",ex); throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get credit info", url, ex); } } diff --git a/src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java b/src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java index 32cac1636..46e1b2a59 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java @@ -42,7 +42,6 @@ import com.omertron.themoviedbapi.results.WrapperImages; import com.omertron.themoviedbapi.results.WrapperVideos; import java.io.IOException; import java.net.URL; -import org.slf4j.LoggerFactory; import org.yamj.api.common.exception.ApiExceptionType; /** @@ -89,7 +88,6 @@ public class TmdbEpisodes extends AbstractMethod { try { return MAPPER.readValue(webpage, TVEpisodeInfo.class); } catch (IOException ex) { - LoggerFactory.getLogger("test").warn("{}", ex); throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get TV Episode Info", url, ex); } } @@ -207,7 +205,7 @@ public class TmdbEpisodes extends AbstractMethod { try { WrapperImages wrapper = MAPPER.readValue(webpage, WrapperImages.class); - ResultList results = new ResultList(wrapper.getAll()); + ResultList results = new ResultList<>(wrapper.getAll()); wrapper.setResultProperties(results); return results; } catch (IOException ex) { @@ -274,7 +272,7 @@ public class TmdbEpisodes extends AbstractMethod { try { WrapperVideos wrapper = MAPPER.readValue(webpage, WrapperVideos.class); - ResultList