The following document contains the results of PMD's CPD 4.3.
| File | Line |
|---|---|
| org/whitesource/maven/CheckPoliciesMojo.java | 72 |
| org/whitesource/maven/UpdateMojo.java | 80 |
sendCheckPolicies(projectInfos);
}
}
/* --- Private methods --- */
private void init() {
// copy token for modules with special names into moduleTokens.
for (Map.Entry<Object, Object> entry : specialModuleTokens.entrySet()) {
moduleTokens.put(entry.getKey().toString(), entry.getValue().toString());
}
// take product name and version from top level project
MavenProject topLevelProject = session.getTopLevelProject();
if (topLevelProject != null) {
if (StringUtils.isBlank(product)) {
product = topLevelProject.getName();
}
if (StringUtils.isBlank(product)) {
product = topLevelProject.getArtifactId();
}
}
}
private void sendCheckPolicies(Collection<AgentProjectInfo> projectInfos) throws MojoFailureException, MojoExecutionException { | |