aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRalph Bergmann <ralph@the4thfloor.eu>2015-03-05 16:15:55 +0100
committerRalph Bergmann <ralph@the4thfloor.eu>2015-03-06 10:52:35 +0100
commitf58de9c02dfc64c1ec4743ba040debc5cf87b560 (patch)
tree45da71f60b69457624d163f5d26d8f147f0728a5 /src
parenteee4bbd6448e6f9914722f245b2a7d7d30b54bf2 (diff)
downloadvolley-f58de9c02dfc64c1ec4743ba040debc5cf87b560.tar.gz
clean up a little bit
Change-Id: Ibbe796c05e406acd48a0d59090e6be746db24867 Signed-off-by: Ralph Bergmann <ralph@the4thfloor.eu>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/android/volley/AuthFailureError.java3
-rw-r--r--src/main/java/com/android/volley/NetworkError.java3
-rw-r--r--src/main/java/com/android/volley/ParseError.java3
-rw-r--r--src/main/java/com/android/volley/ServerError.java3
-rw-r--r--src/main/java/com/android/volley/VolleyLog.java7
-rw-r--r--src/main/java/com/android/volley/toolbox/ImageLoader.java4
-rw-r--r--src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java1
7 files changed, 7 insertions, 17 deletions
diff --git a/src/main/java/com/android/volley/AuthFailureError.java b/src/main/java/com/android/volley/AuthFailureError.java
index 7bb2e15..87c811d 100644
--- a/src/main/java/com/android/volley/AuthFailureError.java
+++ b/src/main/java/com/android/volley/AuthFailureError.java
@@ -18,9 +18,6 @@ package com.android.volley;
import android.content.Intent;
-import com.android.volley.NetworkResponse;
-import com.android.volley.VolleyError;
-
/**
* Error indicating that there was an authentication failure when performing a Request.
*/
diff --git a/src/main/java/com/android/volley/NetworkError.java b/src/main/java/com/android/volley/NetworkError.java
index 42fbcc2..40b41c5 100644
--- a/src/main/java/com/android/volley/NetworkError.java
+++ b/src/main/java/com/android/volley/NetworkError.java
@@ -16,9 +16,6 @@
package com.android.volley;
-import com.android.volley.NetworkResponse;
-import com.android.volley.VolleyError;
-
/**
* Indicates that there was a network error when performing a Volley request.
*/
diff --git a/src/main/java/com/android/volley/ParseError.java b/src/main/java/com/android/volley/ParseError.java
index a55da47..959d8fb 100644
--- a/src/main/java/com/android/volley/ParseError.java
+++ b/src/main/java/com/android/volley/ParseError.java
@@ -16,9 +16,6 @@
package com.android.volley;
-import com.android.volley.NetworkResponse;
-import com.android.volley.VolleyError;
-
/**
* Indicates that the server's response could not be parsed.
*/
diff --git a/src/main/java/com/android/volley/ServerError.java b/src/main/java/com/android/volley/ServerError.java
index 97cb1c6..7b33c33 100644
--- a/src/main/java/com/android/volley/ServerError.java
+++ b/src/main/java/com/android/volley/ServerError.java
@@ -16,9 +16,6 @@
package com.android.volley;
-import com.android.volley.NetworkResponse;
-import com.android.volley.VolleyError;
-
/**
* Indicates that the server responded with an error response.
*/
diff --git a/src/main/java/com/android/volley/VolleyLog.java b/src/main/java/com/android/volley/VolleyLog.java
index 6684690..ffe9eb8 100644
--- a/src/main/java/com/android/volley/VolleyLog.java
+++ b/src/main/java/com/android/volley/VolleyLog.java
@@ -23,7 +23,12 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
-/** Logging helper class. */
+/**
+ * Logging helper class.
+ * <p/>
+ * to see Volley logs call:<br/>
+ * {@code <android-sdk>/platform-tools/adb shell setprop log.tag.Volley VERBOSE}
+ */
public class VolleyLog {
public static String TAG = "Volley";
diff --git a/src/main/java/com/android/volley/toolbox/ImageLoader.java b/src/main/java/com/android/volley/toolbox/ImageLoader.java
index 151e022..995bb48 100644
--- a/src/main/java/com/android/volley/toolbox/ImageLoader.java
+++ b/src/main/java/com/android/volley/toolbox/ImageLoader.java
@@ -91,7 +91,7 @@ public class ImageLoader {
* The default implementation of ImageListener which handles basic functionality
* of showing a default image until the network response is received, at which point
* it will switch to either the actual image or the error image.
- * @param imageView The imageView that the listener is associated with.
+ * @param view The imageView that the listener is associated with.
* @param defaultImageResId Default image resource ID to use, or 0 if it doesn't exist.
* @param errorImageResId Error image resource ID to use, or 0 if it doesn't exist.
*/
@@ -165,7 +165,6 @@ public class ImageLoader {
* request is fulfilled.
*
* @param requestUrl The URL of the image to be loaded.
- * @param defaultImage Optional default image to return until the actual image is loaded.
*/
public ImageContainer get(String requestUrl, final ImageListener listener) {
return get(requestUrl, listener, 0, 0);
@@ -441,7 +440,6 @@ public class ImageLoader {
* Starts the runnable for batched delivery of responses if it is not already started.
* @param cacheKey The cacheKey of the response being delivered.
* @param request The BatchedImageRequest to be delivered.
- * @param error The volley error associated with the request (if applicable).
*/
private void batchResponse(String cacheKey, BatchedImageRequest request) {
mBatchedResponses.put(cacheKey, request);
diff --git a/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java b/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java
index 26f8e68..8bd98aa 100644
--- a/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java
+++ b/src/test/java/com/android/volley/toolbox/NetworkImageViewTest.java
@@ -5,7 +5,6 @@ import android.util.AttributeSet;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView.ScaleType;
-import com.android.volley.Cache;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;