View | Details | Raw Unified | Return to bug 59934
Collapse All | Expand All

(-)a/src/protocol/http/org/apache/jmeter/protocol/http/parser/CssParser.java (-7 / +2 lines)
Lines 23-28 import java.nio.charset.Charset; Link Here
23
import java.util.Collections;
23
import java.util.Collections;
24
import java.util.Iterator;
24
import java.util.Iterator;
25
25
26
import org.apache.commons.lang3.StringUtils;
26
import org.apache.commons.lang3.Validate;
27
import org.apache.commons.lang3.Validate;
27
import org.apache.commons.lang3.tuple.ImmutableTriple;
28
import org.apache.commons.lang3.tuple.ImmutableTriple;
28
import org.apache.commons.lang3.tuple.Triple;
29
import org.apache.commons.lang3.tuple.Triple;
Lines 70-82 public class CssParser implements LinkExtractorParser { Link Here
70
            final URLCollection urlCollection = orDefault(CSS_URL_CACHE.get(triple), EMPTY_URL_COLLECTION);
71
            final URLCollection urlCollection = orDefault(CSS_URL_CACHE.get(triple), EMPTY_URL_COLLECTION);
71
72
72
            if (LOG.isDebugEnabled()) {
73
            if (LOG.isDebugEnabled()) {
73
                StringBuilder builder = new StringBuilder();
74
                LOG.debug("Parsed:" + baseUrl + ", got:" + StringUtils.join(urlCollection, ","));
74
                for (Iterator<URL> iterator = urlCollection.iterator(); iterator
75
                        .hasNext();) {
76
                    URL urlString = iterator.next();
77
                    builder.append(urlString).append(',');
78
                }
79
                LOG.debug("Parsed:" + baseUrl + ", got:" + builder.toString());
80
            }
75
            }
81
76
82
            return urlCollection.iterator();
77
            return urlCollection.iterator();
(-)a/src/protocol/http/org/apache/jmeter/protocol/http/parser/URLCollection.java (-2 / +2 lines)
Lines 39-45 import org.apache.log.Logger; Link Here
39
 * does not support remove()
39
 * does not support remove()
40
 *
40
 *
41
 */
41
 */
42
public class URLCollection {
42
public class URLCollection implements Iterable<URL> {
43
    private static final Logger log = LoggingManager.getLoggerForClass();
43
    private static final Logger log = LoggingManager.getLoggerForClass();
44
    private final Collection<URLString> coll;
44
    private final Collection<URLString> coll;
45
45
Lines 99-104 public class URLCollection { Link Here
99
        return b;
99
        return b;
100
    }
100
    }
101
101
102
    @Override
102
    public Iterator<URL> iterator() {
103
    public Iterator<URL> iterator() {
103
        return new UrlIterator(coll.iterator());
104
        return new UrlIterator(coll.iterator());
104
    }
105
    }
105
- 

Return to bug 59934