diff --git a/src/main/java/com/omertron/themoviedbapi/methods/TmdbAuthentication.java b/src/main/java/com/omertron/themoviedbapi/methods/TmdbAuthentication.java index 6d02fe849..247cc7dec 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbAuthentication.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbAuthentication.java @@ -157,5 +157,4 @@ public class TmdbAuthentication extends AbstractMethod { } catch (IOException ex) { throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get Guest Session Token", url, ex); } - } -} + }} diff --git a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCertifications.java b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCertifications.java index 7a8d62597..8d324dc70 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 ef778c0de..24c781c59 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCollections.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCollections.java @@ -53,9 +53,11 @@ public class TmdbCollections extends AbstractMethod { } /** - * This method is used to retrieve all of the basic information about a movie collection. + * This method is used to retrieve all of the basic information about a + * movie collection. * - * You can get the ID needed for this method by making a getMovieInfo request for the belongs_to_collection. + * You can get the ID needed for this method by making a getMovieInfo + * request for the belongs_to_collection. * * @param collectionId * @param language @@ -95,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 04f65029d..b23a8a870 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 fe859e110..55e5f8129 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbCredits.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbCredits.java @@ -28,6 +28,7 @@ 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; /** @@ -52,11 +53,14 @@ public class TmdbCredits extends AbstractMethod { *

* This is currently only supported with the new credit model found in TV. *
- * These IDs can be found from any TV credit response as well as the TV_credits and combined_credits methods for people.
- * The episodes object returns a list of episodes and are generally going to be guest stars.
+ * These IDs can be found from any TV credit response as well as the + * TV_credits and combined_credits methods for people.
+ * The episodes object returns a list of episodes and are generally going to + * be guest stars.
* The season array will return a list of season numbers.
- * Season credits are credits that were marked with the "add to every season" option in the editing interface and are assumed to - * be "season regulars". + * Season credits are credits that were marked with the "add to every + * season" option in the editing interface and are assumed to be "season + * regulars". * * @param creditId * @param language @@ -74,6 +78,7 @@ 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 46e1b2a59..32cac1636 100644 --- a/src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java +++ b/src/main/java/com/omertron/themoviedbapi/methods/TmdbEpisodes.java @@ -42,6 +42,7 @@ 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; /** @@ -88,6 +89,7 @@ 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); } } @@ -205,7 +207,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) { @@ -272,7 +274,7 @@ public class TmdbEpisodes extends AbstractMethod { try { WrapperVideos wrapper = MAPPER.readValue(webpage, WrapperVideos.class); - ResultList