Skip to content

Commit

Permalink
Use advanced for loop in ResourceDownloader
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Sep 14, 2023
1 parent 4bc67c4 commit 429b165
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/io/sf/carte/doc/agent/net/ResourceDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ private static URL[] extractURL(CSSValue src) {
LinkedList<URL> urlist = new LinkedList<>();
ValueList list = (ValueList) src;
for (int i = 0; i < list.getLength(); i++) {
URL[] url = extractURL(list.item(i));
if (url != null) {
for (int j = 0; j < url.length; j++) {
urlist.add(url[j]);
URL[] urls = extractURL(list.item(i));
if (urls != null) {
for (URL url : urls) {
urlist.add(url);
}
}
}
Expand Down

0 comments on commit 429b165

Please sign in to comment.