Skip to content

Commit bae94bd

Browse files
committed
Clean code
1 parent d7cad40 commit bae94bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/src/com/nostra13/universalimageloader/utils/IoUtils.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ private static boolean shouldStopLoading(CopyListener listener, int current, int
103103
public static void readAndCloseStream(InputStream is) {
104104
final byte[] bytes = new byte[DEFAULT_BUFFER_SIZE];
105105
try {
106-
while (is.read(bytes, 0, DEFAULT_BUFFER_SIZE) != -1) {
107-
}
106+
while (is.read(bytes, 0, DEFAULT_BUFFER_SIZE) != -1);
108107
} catch (IOException e) {
109108
// Do nothing
110109
} finally {

sample/src/com/nostra13/universalimageloader/sample/Constants.java

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public final class Constants {
2222

2323
public static final String[] IMAGES = new String[] {
2424
// Heavy images
25+
"http://www.ioncannon.net/wp-content/uploads/2011/06/test9.webp",
2526
"https://lh6.googleusercontent.com/-55osAWw3x0Q/URquUtcFr5I/AAAAAAAAAbs/rWlj1RUKrYI/s1024/A%252520Photographer.jpg",
2627
"https://lh4.googleusercontent.com/--dq8niRp7W4/URquVgmXvgI/AAAAAAAAAbs/-gnuLQfNnBA/s1024/A%252520Song%252520of%252520Ice%252520and%252520Fire.jpg",
2728
"https://lh5.googleusercontent.com/-7qZeDtRKFKc/URquWZT1gOI/AAAAAAAAAbs/hqWgteyNXsg/s1024/Another%252520Rockaway%252520Sunset.jpg",

0 commit comments

Comments
 (0)