addAttribute("origin", _report.getArtifactOrigin().getLocation()); addAttribute("local", String.valueOf(_report.getArtifactOrigin().isLocal()));
ArtifactOrigin origin = report.getArtifactOrigin(); if (origin != null) { addAttribute("origin", _report.getArtifactOrigin().getLocation()); addAttribute("local", String.valueOf(_report.getArtifactOrigin().isLocal())); } else { addAttribute("origin", ""); addAttribute("local", ""); }
    public EndArtifactDownloadEvent(Ivy source, DependencyResolver resolver, Artifact artifact, ArtifactDownloadReport report) {        super(source, NAME, artifact);        _resolver = resolver;        _report = report;        addAttribute("resolver", _resolver.getName());        addAttribute("status", _report.getDownloadStatus().toString());        addAttribute("size", String.valueOf(_report.getSize()));        addAttribute("origin", _report.getArtifactOrigin().getLocation());        addAttribute("local", String.valueOf(_report.getArtifactOrigin().isLocal()));    }