CPD Results

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

Duplications

File Line
org/sentrysoftware/maven/skin/ImageTool.java 344
org/sentrysoftware/maven/skin/ImageTool.java 536
) throws IOException {

		// basedir path
		Path basedirPath = Paths.get(basedir).toAbsolutePath();

		// First, calculate the real path of the current document
		Path documentPath = Paths.get(basedir, currentDocument);

		Path parentPath = documentPath.getParent();
		if (parentPath == null) {
			throw new IOException("Couldn't get parent path of " + currentDocument);
		}

		// Select all images
		List<Element> elements = body.select(selector);

		// For each image
		for (Element element : elements) {

			// Get the SRC attribute (the path)
			String imageSrc = element.attr("src");
			if (imageSrc.isEmpty()) {
				continue;
			}

			// Skip absolute URLs
			if (isAbsoluteUrl(imageSrc)) {
				continue;
			}
No results.