[Android] Use ternary Luke.
Ludovic Fauvet
git at videolan.org
Mon Oct 15 22:17:26 CEST 2012
vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Oct 15 22:16:13 2012 +0200| [9925b9df2f4092102838da80c9f4d97bf3a5f1ac] | committer: Ludovic Fauvet
Use ternary Luke.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9925b9df2f4092102838da80c9f4d97bf3a5f1ac
---
vlc-android/src/org/videolan/vlc/BitmapCache.java | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/BitmapCache.java b/vlc-android/src/org/videolan/vlc/BitmapCache.java
index 5b21b3b..9d5ab6b 100644
--- a/vlc-android/src/org/videolan/vlc/BitmapCache.java
+++ b/vlc-android/src/org/videolan/vlc/BitmapCache.java
@@ -67,12 +67,8 @@ public class BitmapCache {
public Bitmap getBitmapFromMemCache(String key) {
final Bitmap b = mMemCache.get(key);
- if (LOG_ENABLED) {
- if (b == null)
- Log.d(TAG, "Cache miss");
- else
- Log.d(TAG, "Cache found");
- }
+ if (LOG_ENABLED)
+ Log.d(TAG, (b == null) ? "Cache miss" : "Cache found");
return mMemCache.get(key);
}
More information about the Android
mailing list