squid:UselessParenthesesCheck - Useless parentheses around expressions should be removed to prevent any misunderstanding

This commit is contained in:
George Kankava
2016-03-10 10:53:38 +04:00
parent da6bc39847
commit 950426a9ba
2 changed files with 5 additions and 5 deletions
@@ -87,11 +87,11 @@ public class PduLoaderManager extends BackgroundLoaderManager {
final SlideshowModel slideshow = (requestSlideshow && !DEBUG_DISABLE_CACHE) ?
mSlideshowCache.get(uri) : null;
final boolean slideshowExists = (!requestSlideshow || slideshow != null);
final boolean pduExists = (cacheEntry != null && cacheEntry.getPdu() != null);
final boolean slideshowExists = !requestSlideshow || slideshow != null;
final boolean pduExists = cacheEntry != null && cacheEntry.getPdu() != null;
final boolean taskExists = mPendingTaskUris.contains(uri);
final boolean newTaskRequired = (!pduExists || !slideshowExists) && !taskExists;
final boolean callbackRequired = (callback != null);
final boolean callbackRequired = callback != null;
if (pduExists && slideshowExists) {
if (callbackRequired) {
@@ -122,10 +122,10 @@ public class ThumbnailManager extends BackgroundLoaderManager {
final Bitmap thumbnail = DEBUG_DISABLE_CACHE ? null : mThumbnailCache.get(uri);
final boolean thumbnailExists = (thumbnail != null);
final boolean thumbnailExists = thumbnail != null;
final boolean taskExists = mPendingTaskUris.contains(uri);
final boolean newTaskRequired = !thumbnailExists && !taskExists;
final boolean callbackRequired = (callback != null);
final boolean callbackRequired = callback != null;
if (Log.isLoggable(LogTag.THUMBNAIL_CACHE, Log.DEBUG)) {
Log.v(TAG, "getThumbnail mThumbnailCache.get for uri: " + uri + " thumbnail: " +