minor sonar fixes

master
Stuart Boston 11 years ago
parent aa6bb1e252
commit 5dd6ed7d60

@ -23,9 +23,9 @@ import com.fasterxml.jackson.core.type.TypeReference;
import com.omertron.themoviedbapi.MovieDbException;
import com.omertron.themoviedbapi.model.ListItemStatus;
import com.omertron.themoviedbapi.model.MovieDb;
import com.omertron.themoviedbapi.model2.list.ListItem;
import com.omertron.themoviedbapi.model.MovieDbListStatus;
import com.omertron.themoviedbapi.model2.StatusCode;
import com.omertron.themoviedbapi.model2.list.ListItem;
import com.omertron.themoviedbapi.tools.ApiUrl;
import com.omertron.themoviedbapi.tools.HttpTools;
import com.omertron.themoviedbapi.tools.MethodBase;
@ -71,7 +71,8 @@ public class TmdbLists extends AbstractMethod {
String webpage = httpTools.getRequest(url);
try {
return MAPPER.readValue(webpage, new TypeReference<ListItem<MovieDb>>(){});
return MAPPER.readValue(webpage, new TypeReference<ListItem<MovieDb>>() {
});
} catch (IOException ex) {
throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get list", url, ex);
}
@ -129,7 +130,8 @@ public class TmdbLists extends AbstractMethod {
}
/**
* This method lets users delete a list that they created. A valid session id is required.
* This method lets users delete a list that they created. A valid session
* id is required.
*
* @param sessionId
* @param listId
@ -217,7 +219,8 @@ public class TmdbLists extends AbstractMethod {
*
* This is a irreversible action and should be treated with caution.
*
* A valid session id is required. A call without confirm=true will return status code 29.
* A valid session id is required. A call without confirm=true will return
* status code 29.
*
* @param sessionId
* @param listId

Loading…
Cancel
Save