CPD Results

The following document contains the results of PMD's CPD 7.0.0.

Duplications

File Project Line
us/codecraft/webmagic/pipeline/FilePipeline.java webmagic-core 42
us/codecraft/webmagic/samples/pipeline/OneFilePipeline.java webmagic-samples 33
printWriter.println("url:\t" + resultItems.getRequest().getUrl());
            for (Map.Entry<String, Object> entry : resultItems.getAll().entrySet()) {
                if (entry.getValue() instanceof Iterable) {
                    Iterable value = (Iterable) entry.getValue();
                    printWriter.println(entry.getKey() + ":");
                    for (Object o : value) {
                        printWriter.println(o);
                    }
                } else {
                    printWriter.println(entry.getKey() + ":\t" + entry.getValue());
                }
            }
            printWriter.close();