minor sonar fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user