Java: Adjust comment style.

This commit is contained in:
Anders Schack-Mulligen
2018-10-11 12:57:40 +02:00
parent 67d1c72e64
commit 482733569a
3 changed files with 21 additions and 55 deletions

View File

@@ -52,11 +52,8 @@ class ProtoPom extends XMLElement {
class Pom extends ProtoPom {
Pom() {
this.getName() = "project" and
/*
* Ignore "dependency-reduced-pom" files - these are generated by the
* shading plugin, and duplicate existing pom files.
*/
// Ignore "dependency-reduced-pom" files - these are generated by the
// shading plugin, and duplicate existing pom files.
this.getFile().getStem() != "dependency-reduced-pom"
}
@@ -260,24 +257,15 @@ class Dependency extends ProtoPom {
class PomDependency extends Dependency {
PomDependency() {
exists(Pom source |
/*
* This dependency must be a dependency of a pom - dependency tags can also appear in the dependency
* management section, where they do not directly contribute to the dependencies of the containing
* pom.
*/
// This dependency must be a dependency of a pom - dependency tags can also appear in the dependency
// management section, where they do not directly contribute to the dependencies of the containing
// pom.
source.getADependency() = this and
/*
* Consider dependencies that can be used at compile time.
*/
// Consider dependencies that can be used at compile time.
(
getScope() = "compile" or
/*
* Provided dependencies are like compile time dependencies except (a) they are not packaged
* when creating the jar and (b) they are not transitive.
*/
// Provided dependencies are like compile time dependencies except (a) they are not packaged
// when creating the jar and (b) they are not transitive.
getScope() = "provided"
// We ignore "test" dependencies because they can be runtime or compile time dependencies
)
@@ -412,11 +400,8 @@ class MavenRepoJar extends File {
string getGroupID() {
exists(MavenRepo mr | mr.getAJarFile() = this |
/*
* Assuming the standard layout, the first part of the directory structure from the maven
* repository will be the groupId converted to a path by replacing "." with "/".
*/
// Assuming the standard layout, the first part of the directory structure from the maven
// repository will be the groupId converted to a path by replacing "." with "/".
result = getParentContainer()
.getParentContainer()
.getParentContainer()